2011年11月8日

Java类似C#的foreach数组遍历

摘要: 2011-11-08View Code 1 public class JavaApplication8 { 2 3 public static void main(String[] args) { 4 int[] b=new int[8]; 5 for(int i=0;i<b.length;i++) 6 { 7 b[i]=i; 8 } 9 for(int c:b)10 {11 System.out.println(c);12 }13 }14 } 阅读全文

posted @ 2011-11-08 10:47 aolinwxfx 阅读(789) 评论(0) 推荐(0) 编辑

导航