RSS

contoh kode untuk membuat garis kolom menu pilihan dalam cmd

03 May

package bangke.tonk.zampah;

import java.util.*;

public class kode_huruf_untuk_membuat_garis_dalam_tampilan_cmd{
public kode_huruf_untuk_membuat_garis_dalam_tampilan_cmd(){
Scanner s=new Scanner(System.in);
for(int i=0; i<50; i++){
System.out.println();
System.out.println();
System.out.println();
System.out.print(“\n\t\t ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» “);
System.out.print(“\n\t\t º MENU º “);
System.out.print(“\n\t\t ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹ “);
System.out.print(“\n\t\t º 1. Soto Ayam º “);
System.out.print(“\n\t\t º º “);
System.out.print(“\n\t\t º 2. Soto Kambing º “);
System.out.print(“\n\t\t º º “);
System.out.print(“\n\t\t º 3. Soto Babi º “);
System.out.print(“\n\t\t º º “);
System.out.print(“\n\t\t º 4. Nasi Basi º “);
System.out.print(“\n\t\t º º “);
System.out.print(“\n\t\t º 5. Nasi Kucing º “);
System.out.print(“\n\t\t º º “);
System.out.print(“\n\t\t º 6. Exit º “);
System.out.print(“\n\t\t ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ “);
System.out.println();
System.out.print(“\t\t Masukan Pilihan Anda : “);
int pilih=s.nextInt();
System.out.println();
switch(pilih){
case 1: System.out.println(“\t\t\tpilihan anda soto ayam”);
System.out.println(“\t\t\trasanya pasti enak n g\n”+
“\t\t\tkalah enak ma restoran soto ayam pinggir jalan”);
break;
case 2: System.out.println(“\t\t\tpilihan anda soto kambing”);
System.out.println(“\t\t\trasanya pasti juga enak krn\n”+
“\t\t\tdibuat dengan kambing piliha\”kambing garut\”");
break;
case 3: System.out.println(“\t\t\tpilihan anda soto babi”);
System.out.println(“\t\t\trasanya lebih enak dari semua jenis\n”+
“\t\t\tdaging binatang didunia…pokoknya enak bangetttttt…..”);
break;
case 4: System.out.println(“\t\t\tpilihan anda nasi basi”);
System.out.println(“\t\t\trasanya jangan salah…enak bgt…kaya”+
“\t\t\tnasi ditong-tong zampah disekitar comberan,pasar kumuh,dan\n”+
“\t\t\tparit-parit terdekat….”);
break;
case 5: System.out.println(“\t\t\tpilihan anda nasi kucing”);
System.out.println(“\t\t\tmakanan ini dari jogja,,asal mula ceritanya\n”+
“\t\t\tg tau juga…tp pasti nasinya punya kucing”);
break;
case 6: System.exit(0);
break;
default: System.out.println(“\t\t\tpilihan yang anda masukan tidak ada,,,\n”+
“\t\t\tsilahkan masukan pilihan dari 1-5,,klo 6 keluar bro…peace”);
System.out.println();
System.out.println();
System.out.println();
System.out.println();
}
}

System.out.println();
}
public static void main(String[]bangke_tonk_zampah){
new kode_huruf_untuk_membuat_garis_dalam_tampilan_cmd();
}
}

 
Leave a comment

Posted by on May 3, 2011 in about me

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: