Java Arrays deepToString方法


Java Arrays deepToString方法

package com.codingdict;

import java.util.Arrays;

public class ArrayDemo {
   public static void main(String[] args) {

      // initializing an object array
      Object[] ob={"tuts","point"};

      // let us print all the values available in list
      System.out.println("The array is:");
      for (Object value : ob) {
         System.out.println("Value = " + value);
      }

      System.out.println("The string representation of array is:");
      System.out.println(Arrays.deepToString(ob));    
   }
}