public class ArrayToCollection { public static void main(String s[]){ int a[]=new int[10]; for(int i=0;i<10;i++){ a[i]=i; } for(Integer i:a){ System.out.print(" "+i); } } }
Post a Comment
No comments:
Post a Comment