0

I need some difficult examples of Enhanced for loop

I need some examples to make my concept better

27th Jan 2019, 9:04 AM
Saad Saleem
Saad Saleem - avatar
4 Réponses
+ 3
for(char i :"ifmmp!xpsme".toCharArray()){ --i;System.out.print(i); }
27th Jan 2019, 2:57 PM
D_Stark
D_Stark - avatar
+ 2
You will need to show code because we have no idea what your looking for they can be used in diffrenet ways
27th Jan 2019, 10:06 AM
D_Stark
D_Stark - avatar
0
D_Stark OK tell me how i used descrement operator in it
27th Jan 2019, 12:51 PM
Saad Saleem
Saad Saleem - avatar