//RAHMAN ADI FIRMANSYAH-C-1535010086
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package handphone;
/**
*
* @author Rahman
*/
public class Handphone {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
handphone1 hanphone = new handphone1();
hanphone.proses();
switch(hanphone.pil){
case 1: hanphone.Handphonecanggih1();
break;
case 2: hanphone.Handphonecanggih2();
break;
case 3: hanphone.Handphonecanggih3();
}
}
}
//RAHMAN ADI FIRMANSYAH-C-1535010086
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package handphone;
import java.util.Scanner;
/**
*
* @author Rahman
*/
public class handphone1 {
static String hp1="HP Iphone", hp2="HP Samsung", hp3="HP Oppo",hanphone;
static int pil;
Scanner ss = new Scanner(System.in);
void proses()
{
System.out.println("1. HP Iphone \n 2. HP Samsung \n 3. HP Oppo");
System.out.println("Handphone Yang Anda Pilih: ");
pil = ss.nextInt();
}
void Handphonecanggih1()
{
hp1 = "Iphone";
System.out.println("Nama :"+hp1+"\n"+"Iphone 6S"+hanphone);
}
void Handphonecanggih2()
{
hp2 = "Samsung";
System.out.println("Nama :"+hp2+"\n"+"Samsung S6+EDGE"+hanphone);
}
void Handphonecanggih3()
{
hp3 = "Oppo";
System.out.println("Nama :"+hp3+"\n"+"Oppo R7"+hanphone);
}
}
Harrah's Cherokee Casino and Hotel - MapYRO
BalasHapusHarrah's Cherokee 당진 출장샵 Casino 천안 출장안마 and Hotel - MapYRO offers real-time driving 보령 출장안마 directions to Harrah's Cherokee Casino and 태백 출장마사지 Hotel, 3715 Cherokee 춘천 출장안마 Center Drive,