Java

From RHS Wiki
Jump to navigation Jump to search

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