title: Print list of list of integer
body: <p>I have the following list: </p>
  
  <pre><code>List&lt;List&lt;int[]&gt;&gt; graph;
  </code></pre>
  
  <p>How can I print the content of graph without using loop? I tried the following 2 methods but all of them failed to print:</p>
  
  <pre><code>int[][] input=new int[][]{{1,2,5},{1,3,6},{2,3,1}};
  List&lt;List&lt;int[]&gt;&gt; graph = new ArrayList&lt;&gt;();
          for (int i = 0; i &lt;= 3; i++) graph.add(new ArrayList&lt;&gt;());
          for (int[] conn : input) {
              int city_A = conn[0], city_B = conn[1], price = conn[2];
              graph.get(city_A).add(new int[] {city_B, price});
              graph.get(city_B).add(new int[] {city_A, price});
          }
  graph.forEach(s-&gt;System.out.println("Output:"+s));
  System.out.println(Arrays.deepToString(graph.toArray()));
  </code></pre>
  
  <blockquote>
    <p>Output:[[I@1fb3ebeb, [I@548c4f57]
    Output:[[I@1218025c, [I@816f27d]
    Output:[[I@87aac27, [I@3e3abc88]</p>
  </blockquote>
  
  <p>Expected output is to print each element without going to new line: </p>
  
  <blockquote>
    <p>Output: [[1,2], [1,3], [2,0]]</p>
  </blockquote>