Tips for Java beginners
Test, it must be placed in a Java source code file named
mainmethod in first or last position (for convenience).
mainmethod, and it must be defined as
public static void main(String args)in order for the program to compile and run.
//and allows you to write a comment until the end of the line.
/*and ends with
*/. It allows you to write anything over any number of lines until the ending
|char||A character of the alphabet, or symbols and numbers|
|String||A string of characters forming a word, sentence or something longer|
|int||An integer (number with no fractional part)|
|long||A longer (64 bits of space) integer|
|float||A floating-point number (32 bits of space)|
|double||A double-precision float (64 bits of space)|