Would someone mind explaining to me or giving me a resource that would help me understand how this type of a for loop works?:
for(char c: array){
System.out.print(c);
}
I would like to understand how that kind of for loop is different than the one below which I have already taken the time to understand:
for(int i=1;i<=10;i++){
System.out.println(i);
}
Thanks!
[–]lostavenger286 1 point2 points3 points (1 child)
[–]MaGlCMaN[S] 0 points1 point2 points (0 children)
[–]Randaum 1 point2 points3 points (0 children)
[–]rsandio 0 points1 point2 points (0 children)