public class LatihanUTS
{
public static void
main(String[] args)
{
String[][]
data = new String[][]
{{"Florence","735-1234"
,"Manila"},
{"Joyce",
"983-3333", "Quezon City"},
{"Becca",
"456-3322", "Manila"}};
System.out.println("Name
: "+ data[0][0]);
System.out.println("Tel.#
: "+ data[0][1]);
System.out.println("Address
: "+ data[0][2]);
System.out.println("\nName
: "+ data[1][0]);
System.out.println("Tel.#
: "+ data[1][1]);
System.out.println("Address
: "+ data[1][2]);
System.out.println("\nName
: "+ data[2][0]);
System.out.println("Tel.#
: "+ data[2][1]);
System.out.println("Address
: "+ data[2][2]);
}
}
Download script disini
No comments:
Post a Comment