ni program java buat bkin sebuah array
import javax.swing.*;
public class acs{
public static void main(String args[]) {
String [] nama = new String [50]; String [] telp = new String [50]; String [] alamat = new String [50];
String jum = JOptionPane.showInputDialog("Masukkan jumlah data");
int j = Integer.parseInt(jum);
for (int i=0; i String nm = JOptionPane.showInputDialog("Masukkan nama ke - "+(i+1)); nama[i] = nm; String tlp = JOptionPane.showInputDialog("Masukkan nomor telpon ke - "+(i+1)); telp[i] = tlp; String alm = JOptionPane.showInputDialog("Masukkan alamat ke - "+(i+1)); alamat[i] = alm; } System.out.println("Data yang telah dimasukkan : \n"); for (int i =0; i System.out.print("Nama : "+nama[i]+"\t"); System.out.print("Telepon : "+telp[i]+"\t"); System.out.println("Alamat : "+alamat[i]); } System.out.println("\n"); System.exit(0); }}