Selasa, 10 Januari 2012
Contoh Penggunaan Array 2 dimensi.
public class DuaD4 {
public static void main(String [] args){
String [][] tabel = new String[][] {{"1","Mila","9"},
{"2","Fajar","10"},
{"3","Handy","8"}
System.out.println(tabel[0][0] + " " + tabel[0][1] + " " + tabel[0][2]);
System.out.println(tabel[1][0] + " " + tabel[1][1] + " " + tabel[1][2]);
System.out.println(tabel[2][0] + " " + tabel[2][1] + " " + tabel[2][2]);
}
}
Selamat mencoba dan semoga berhasil.
Label:
Divisi AlProg
Langganan:
Posting Komentar (Atom)
Blog Archive
-
2012
(14)
- April(1)
- Maret(1)
-
Januari(12)
- Dasar Jaringan Komputer
- Perbedaan Web Statis dan Web Dinamis
- Sekilas Tentang Website
- Array 2 dimensi
- For,While,Do While
- Jadwal Forum InTech 9 - 14 Januari 2012
- Pemateri Divisi Design Grafis
- Pemateri Divisi Web Design
- Pemateri Divisi Jarkom
- Pemateri Divisi IKG
- Pemateri Divisi Pemrograman
- Daftar Pengurus InTech-Community
InTech Community Sebuah komunitas yang berbasis I.T. dan mencoba untuk mengembangkannya menjadi lebih bermanfaat
Pages
Label
- Divisi AlProg (3)
- Divisi Grafis (2)
- Divisi IKG (1)
- Divisi JarKom (2)
- Divisi Web (3)
- Forum InTech (1)
- Jadwal Forum (1)
- Software (1)
0 komentar:
Posting Komentar