Jumat, 04 April 2014

yuhuuuu

import java.util.Scanner;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author user
 */
public class nama_partai {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner Nama=new Scanner (System.in);
        System.out.print("Masukan Nama Partai");
        int partai=Nama.nextInt();
        switch(partai){
      
            case 1:
                System.out.print("Partai Golkar");
                break;
            case 2:
                System.out.print("Partai Amanat Nasional");
                break;
            case 3:
                System.out.print("Partai Demokrat");
                break;
            case 4:
                System.out.print("PDIP");
                break;
            case 5:
                System.out.print("Partai Gerindra");
                break;
            default:
                System.out.print("Masukan Pilihan Anda 1,2,3,4,5");
               
            }

}
}