import javax.swing.JOptionPane; public class ex8 { public static void main (String args[]) { int max; max = JOptionPane.showInputDialog("Enter the number of entries of the address book: "); String address [] [] []= new String [max][max][max]; for (int inames=0; inames <= max; inames ++) { for (int itel=0; itel <= max; itel ++) { for (int iadd = 0; iadd<= max; iadd ++) { address[inames][itel][iadd] = JOptionPane.showInputDialog("Name: "); address[itel][inames][iadd] = JOptionPane.showInputDialog("Tel. : "); address[iadd][inames][itel] = JOptionPane.showInputDialog("Address: "); } } } } }