元素值等于下标

public class First {
public static void main(String[] args){
    int []a={0,1,2,3,4,5,6,7,8,9};
    for (int i=0;i<a.length;i++){
        System.out.println("a"+i+" "+a[i]);
        
    }

    
     }
    
    }

 

posted @ 2017-04-03 15:10  苏轼的红烧肉  阅读(152)  评论(0编辑  收藏  举报