Java tutorial
//package com.java2s; import java.util.Vector; public class Main { public static Object[][] to2DArray(Vector<Vector> towDVector) { Object[][] towDArray = new Object[towDVector.size()][]; for (int i = 0; i < towDVector.size(); i++) { Vector row = (Vector) towDVector.elementAt(i); towDArray[i] = row.toArray(); } return towDArray; } }