/*
* class BukuTelepon
*/
public class BukuTelepon {
public static void main (String[] args) {
String[][] contact = {
{“John Smith”, “03417600611”},
{“Indiana Jones”, “02746800432”},
{“Lara Croft”, “02854778231”},
{“Shaggy”, “021480451”},
{“Nicodemus Legend”, “03516768300”},
{“Clark Kent”, “0273900911”}
};
for(int i = 0; i < contact.length; i++) {
System.out.println(“Nama : ” + contact[i][0]);
System.out.println(“Telepon : ” + contact[i][1]);
System.out.println(“——————————-“);
}
}
}

Iklan