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

About these ads
  1. No comments yet.
  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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: