I am working on a class assignment (not a java class... well it is a class on java, but not the meaning java has for class) and I am trying to get my program to allow user input from the command prompt. The problem is I keep getting errors about the import syntax saying that nothing is in the right place.
The program goes on, but I feel it is not important for the issue at hand. I appreciate any help on the matter
Are you taking classes in Java, or classes about Java classes, or Java classes about classes?
More seriously, although the Sun style guide is 10 years old, the order of parts of a class is still accurate. You may omit parts of the order; for example it mentions public fields, but as a design principle most classes only have private fields, so you simply ignore that part. Also in class exercises about classes in class ( ) you may not have time to write all your documentation comments.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad: