日期:2014-05-20 浏览次数:20928 次
public class testarray { public static void main(String args[]){ int a[][] = new int[][]{{1,2},{3,4,5},{6},{7,8,9,10}}; for(int i = 0; i < a.length; i++){ for(int j = 0; j < a[i].length; j++) System.out.print(" " + a[i][j]); System.out.println(""); } } }