- import java.util.Scanner;
- public class Ch11
- {
- public static void main(String args[])
- {int a[]={1,2,3,4};
- int b[][]={
- {90,85,86},
- {70,75,80},
- {80,95,80},
- {70,95,75},
- {80,85,95}
- };
- int c[][][]=
- {
- {
- {58,8,6,},{9,5,7},{9,8,5,},{9,8,2}
- },
- {
- {5,4,5},{4,5,6},{7,5,4},{8,2,0}
- },
- {
- {5,7,2},{5,7,0},{9,8,1},{8,2,0}
- },
- {
- {5,4,2},{8,4,1},{4,7,3},{4,1,5}
- }
-
- };
- System.out.println( a.length);
- System.out.println( b.length);
- System.out.println( c.length);
-
- }
- }
複製代碼 |