Capitalisation of key words Once we get into the habit of writing class names in capital letters you will occasionally find yourself writing keywords such as class and int with a capital beginning letter. The compiler will object to this and will issue an error message which depends on which keyword was capitalized. The compiler will issue an error message such as: Line nn: class or interface declaration expected when, for example, you capitalize the keyword class . Writing a string over a new line Sometimes you will need to write a long string. A common error is to have a new line embedded in the string. The compiler will object to this and will issue an error message such as: Line nn: ';' expected When this happens the solution is to split the string into two, making sure that neither string has a new line in it, and concatenate them with +. Thus you might replace:
About Java and it's related concepts..