Minggu, 18 April 2010

Java array1

class Array1{

public static void main(String[] args) {
int[] tabInt = new int[5];

tabInt[0] = 1;
tabInt[1] = 2;
tabInt[2] = 3;
tabInt[3] = 4;
tabInt[4] = 5;

System.out.println("isi array :");

int i;

for(i=0; i<5; i++){
System.out.println (tabInt[i]);
}

}
}