Java Arrays.deepToString(Object [] a)

Syntax

Arrays.deepToString(Object [] a) has the following syntax.

public static String deepToString(Object [] a)

Example

In the following code shows how to use Arrays.deepToString(Object [] a) method.


//from w  w  w .  ja va2s.c o  m
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.