Arrays.deepToString(Object [] a) has the following syntax.
public static String deepToString(Object [] a)
In the following code shows how to use Arrays.deepToString(Object [] a) method.
//from w w w . j a v a2 s . c om import java.util.Arrays; public class Main { public static void main(String[] args) { Object[][] ob= new Object[][]{{"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, {"java2s.com","tutorial from java2s.com"}, }; System.out.println(Arrays.deepToString(ob)); } }
The code above generates the following result.