简单的数组


public class ArrayDemo01 {
public static void main(String[]args){
int score[]=null;
score=new int[3];
System.out.println("score[0]="+score[0]);
System.out.println("score[1]="+score[1]);
System.out.println("score[2]="+score[2]);
for(int x=0;x<score.length;x++){
System.out.println("score["+x+"]="+score[x]);

}
}

}

posted @ 2015-03-19 19:35  dung  阅读(88)  评论(0)    收藏  举报