123456 | class Hello { // main: generate some simple output public static void main (String[] args) { System.out.println ("Hello, world."); }} |
62. Block layout should be as illustrated
public static void main (String[] args) {
String firstName = "Gary";
System.out.println(firstName);
}
61. Basic indentation should be 4. public static void main (String[] args) {
String firstLine; Indentation is used to emphasize the logical structure of the code. Sun recommendation on this point is 4 spaces (Default in NetBeans).
Yeah sorry. I only have access to this from school, and only for a certain period of time. I'm trying to clean it up as much as possible without having my teacher get suspicious, but I guess I will have to check more :( sorry. Once it gets through indentation though, and into actual coding, it will get much better. Part 3 soon. Thanks for the adviceWhy are you worried that your teacher will see it? lol not like she/he would get here... and if it did, what would she/he do? :D