Advertisement
zihadrizkyef

ujian-MultiDimensionArray

Jun 23rd, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. /**
  8.  *
  9.  * @author zihadrizkyef
  10.  */
  11. public class MultiDimensionArray {
  12.     public static void main(String[] args) {
  13.         String[][] entry = {{"Fahmi Azain", "081-252-067-797", "Jember"},
  14.                             {"Hakam Al Amien", "082-261-037-121", "Mojokerto"},
  15.                             {"Adelia Maghfira", "085-718-997-313", "Bogor"}};
  16.         for(int x=0; x<=2; x++) {
  17.             System.out.println("Nama : "+entry[x][0]+"\nTelp : "+entry[x][1]+"\nAsal : "+entry[x][2]+"\n");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement