Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to print array in one line in java

import java.util.*;
public class Main
{
   public static void main(String[] args)
   {
      int[][] array = {{1, 2, 3, 4}, {5, 6, 7, 8}};
        System.out.println(Arrays.deepToString(array));
   } 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #array #line #java
ADD COMMENT
Topic
Name
5+9 =