Kamis, 19 Mei 2011

Array 1 Dimensi :Class Daftar

public class Daftar {
    public static void main(String[] args) {
       int [] um= {4,5,2,3};
       String []nm={"joko","budi","yeni","nino"};
       System.out.println("No,Nama,Umur");
       for (int i=0;i<4;i++)
       System.out.println((i+1)+" "+nm[i]+" "+um[i]);


    }
}

0 komentar:

Posting Komentar