Here you can find the source of printObjectArray(Collection valueArrays)
public static void printObjectArray(Collection valueArrays)
//package com.java2s; import java.util.Collection; import java.util.Iterator; public class Main { public static void printObjectArray(Collection valueArrays) { System.out.println("["); for (Iterator iterator = valueArrays.iterator(); iterator.hasNext();) { Object[] values = (Object[]) iterator.next(); System.out.print("["); for (int i = 0; i < values.length; i++) { Object value = values[i]; System.out.print(value); if ((i + 1) < values.length) System.out.print(","); }// ww w .ja v a2 s . co m System.out.println("]"); } System.out.println("]"); } }