Here you can find the source of to2DIntArray(Collection coll)
public static int[][] to2DIntArray(Collection coll)
//package com.java2s; /*/*from w ww .j av a 2 s . c o m*/ * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ import java.util.Collection; public class Main { public static int[][] to2DIntArray(Collection coll) { return (int[][]) coll.toArray(new int[coll.size()][]); } }