public class Rika{
public static void main( String args[] ){
int i=9;
System.out.printf("%d",++i);
System.out.printf("%d",i);
/*
for(int i=0;i<2;i++){ //baris
for(int j=0;j<2;j++){ //kolom
System.out.print("*");
}
System.out.println();
}*/
/*
for(i=0;i<10;i++){
System.out.printf("%d",i);
}*/
/*
int angka;
char karakter;
Scanner input = new Scanner(System.in);
System.out.print("Pilih Menu [1..3]: ");
//angka = input.nextInt(); //Integer punya i besar
karakter = input.next().charAt(0);
switch(karakter){
case 'a': case 'i': case 'u': case 'e': case 'o':
System.out.print("Huruf Vocal\n");
break;
default:
System.out.print("Huruf Konsonan\n");
}
*/
/*
switch(angka){
case 'A':
//System.out.print("Soto Ceker\n");
//break;
case 2:
System.out.print("Capcay Cabe\n");
break;
case 3:
System.out.print("Terong di Cabein\n");
break;
default:
System.out.print("Bro..broo, cuma 1 s/d 3 bro\n");
}*/
}
}
Short Hand merupakan persamaan contoh :
A+=8 sama dengan A=a+8
= 8 jadi a-8
ReplyDeletepublic class Rika{
public static void main( String args[] ){
int i=9;
System.out.printf("%d",++i);
System.out.printf("%d",i);
/*
for(int i=0;i<2;i++){ //baris
for(int j=0;j<2;j++){ //kolom
System.out.print("*");
}
System.out.println();
}*/
/*
for(i=0;i<10;i++){
System.out.printf("%d",i);
}*/
/*
int angka;
char karakter;
Scanner input = new Scanner(System.in);
System.out.print("Pilih Menu [1..3]: ");
//angka = input.nextInt(); //Integer punya i besar
karakter = input.next().charAt(0);
switch(karakter){
case 'a': case 'i': case 'u': case 'e': case 'o':
System.out.print("Huruf Vocal\n");
break;
default:
System.out.print("Huruf Konsonan\n");
}
*/
/*
switch(angka){
case 'A':
//System.out.print("Soto Ceker\n");
//break;
case 2:
System.out.print("Capcay Cabe\n");
break;
case 3:
System.out.print("Terong di Cabein\n");
break;
default:
System.out.print("Bro..broo, cuma 1 s/d 3 bro\n");
}*/
}
}
Short Hand merupakan persamaan contoh :
A+=8 sama dengan A=a+8
= 8 jadi a-8