title: Java - Return two dimensional array value from get method
body: <p>I want to return all values of 2D array. How I can return it if I use get method with String type?
  And how if I want to  make the output like table (one line per row) with no brackets and comma?</p>
  
  <pre><code>public class Data {
  private final String[][] table;
  public Data(){
      table = new String[][] {{"ID", "NAME"},
                              {"101", "A"},
                              {"102", "B"},
                              {"103", "C"},
                              {"104", "D"},
                              {"105", "E"}};
  }
  
  public String[][] get(){
      return table;
  }
  
  public void displayMessage(){
      System.out.println(Arrays.deepToString(get()));
  }}
  </code></pre>