Difference between revisions of "Java"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 15: | Line 15: | ||
public static void main(String[] args) { | public static void main(String[] args) { | ||
| − | int | + | int myInt = 88; //Integer 32 bit |
| − | System.out.println(variable); | + | short myShort; //Short 16 bit |
| + | long myLong; //Long 64 bit | ||
| + | |||
| + | double myDouble; //Double | ||
| + | float myFloat = 325.25f //Float | ||
| + | |||
| + | char myChar = 'y'; //Char | ||
| + | System.out.println(variable); | ||
} | } | ||
}</source | }</source | ||
Revision as of 02:41, 26 March 2015
hello world
public class aplication {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
variables
<source lang="java"> public class aplication {
public static void main(String[] args) { int myInt = 88; //Integer 32 bit
short myShort; //Short 16 bit
long myLong; //Long 64 bit
double myDouble; //Double
float myFloat = 325.25f //Float
char myChar = 'y'; //Char
System.out.println(variable);
}
}</source