Guess the output:
public class ForEachDemo {
public static void main(String args[]){
int a[]={1,8,1,1,1,1,1,1,1,1};
for(int i:a)//for each is for arrays display
System.out.println(a[i]);
}
}
Output:
8
1
8
8
8
8
8
8
8
8
Guess the output:
public class ForEachDemo {
public static void main(String args[]){
int a[]={1,8,1,1,1,1,1,1,1,1};
for(int i:a)//for each is for arrays display
System.out.println(i);
}
}
output:
1
8
1
1
1
1
1
1
1
1
Sunday, November 20, 2011
Subscribe to:
Post Comments (Atom)
-
Hi Guys , In this blog I will share information related to error : can't bind to 'formcontrol' since it isn't a known pr...
-
Hi Guys , This blog is about the error " Target container is not a DOM element. " The full error in the console log is ...
-
Hi Guys , In this blog I will share information related to error : ReferenceError: MongoClient is not defined . This error is related...
No comments:
Post a Comment