hey,
So I'm learning java right now, and I saw something strange in a programming tutorial on Youtube.
this is the normal for loop:
// example for (int x = 0 : x <= 5 : x ++) { //code here }
but then I saw something like this:
for ( String s : getConfig().getConfigurationSection("kits")) { // code here }
only 2 things inside the "()" things (don't know the english word for that ..)
I mean not :
for ( thing 1 : thing 2 : thing 3)
but
for (thing 1 : thing 2)
what does that do ?
I mean is that an infinite loop or what .. I don't understand that ..
thanks for help