Rabu, 02 Maret 2011

switch case


public static void main(String[] args) {
int Point;

Point = 3;
System.out.println("====================");
System.out.println("Nama : Handy agustian saputra");
System.out.println("Point : " + Point);
switch (Point){
case 1:
System.out.println("ket : Perunggu");
break;
case 2:
System.out.println("ket : Perak");
break;
case 3:
System.out.println("ket : emas");
break;
default:

System.out.println("=====================");

// TODO code application logic here
}
}
}

Tidak ada komentar:

Posting Komentar