import java.util.ArrayList; import java.util.List;
public class KK { public static void main(String[] args) { // Object[][] actualResult = new Object[10][1]; // String[][] expectedResult = new String[5][1]; 这两句就相当于 Object[][] actualResult = { { "1","11" }, { "2","22" }, { "3","33" }, { "4","44" }, { "5","55" }, { "6","66" }, { "7","77" }, { "8","88" }, { "9","99" }, { "10","1010" } }; String[][] expectedResult = { { "1","11" }, { "2","22" }, { "3","33" }, { "4","44" }, { "5","55" } }; List list1 = new ArrayList(); List list2 = new ArrayList(); for (int i = 0; i < actualResult.length; i++) { for(int j=0;j