Home > Array, Java Programming, Source Code > Contoh Program Buku Alamat dengan Array

Contoh Program Buku Alamat dengan Array


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package TugasModule5;

/**
*
* @author Arin
*/
public class BukuAlamat {

public static void main(String[] args) {
String[][] entry = {{“Florence”, “735-1234”, “Manila”},
{“Joyce”, “983-3333”, “Quezon City”},
{“Becca”, “456-3322”, “Manila”}};

int x = 0;

for (x = 0; x < 3; x++) {
System.out.println("Name : " + entry[x][0]);
System.out.println("Tel. # : " + entry[x][1]);
System.out.println("Address : " + entry[x][2]);
System.out.println("");
}
}
}

Download Source Code : http://www.ziddu.com/download/7961146/BukuAlamat.zip.html

Advertisements
  1. March 23, 2018 at 1:58 am

    It’s really a nice and helpful piece of info. I’m glad that you simply shared this
    useful information with us. Please keep us informed like this.
    Thank you for sharing.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: