Rabu, 29 Mei 2013
ARRAY DALAM BAHASA JAVA
//yogi pratama
//kls 1.2 pagi
//1203082
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.Scanner;
public class problem2
{
public static void main(String[]args)
{
Scanner masuk=new Scanner(System.in);
BufferedReader dataIn=new BufferedReader(new InputStreamReader(System.in));
String []kg=new String[20];
int []jhir=new int[10];
int []gp=new int[20];
int []tgllem=new int[11];
int []jlmul=new int[10];
int []jljam=new int[10];
int nama,kodgol,i;
i=1;
if(i>20)
{
System.out.print("input kode golongan :"+(i+1)+": ");
try
{
kg[i]=dataIn.readLine();
}
catch(IOException e)
{
System.out.println("error!");
}
System.out.print("input gaji pokok :"+(i+1)+": ");
try
{
gp[i]=dataIn.readLine();
}
catch(IOException e)
{
System.out.println("error!");
}
}
System.out.print("masukkan nama :"+nama);
System.out.print("masukkan kode golongan :"+kodgol);
}
}
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar