0

I was just wondering if a different syntax similar to "for each t in arr" is valid or not.

For each

2nd Oct 2016, 12:07 PM
Hjalmar
Hjalmar - avatar
2 Réponses
+ 1
syntax to for each loop in java : for(t:arr) { }
2nd Oct 2016, 12:22 PM
chetan acharya
chetan acharya - avatar
0
String arr[] = {1,2,3,4}; for(String el : arr) { System.out.println(el + " "); }
2nd Oct 2016, 4:02 PM
Mythos