Palembang, 24 Mei 2012 04:50
class Array2D {
public static void main(String args[]){
//pendeklarasian array matrix dengan String
String[ ][ ] arrNama = {
{"Ano "," Lichin ","Iim "},
{"Zhay "," Dicky ","Wimbo "},
{"Tommy "," Pliqu ","Jati "} };
//menampilkan matrix array
for(int i=0;i<3;i++){
for(int j=0;j<3;j++){
System.out.print(arrNama[i][j]);
System.out.print(" ");
}
System.out.print("\n");
}
System.out.println("\n\n");
}
}
Tidak ada komentar:
Posting Komentar