Created
July 27, 2011 10:07
-
-
Save timendum/1109062 to your computer and use it in GitHub Desktop.
Down To in Java [ trick wtf ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DownTo { | |
public static void main(String[] arc) { | |
for (int i = 20; i --> 0;) { | |
// i-- > 0 | |
System.out.println("ok: "+i); | |
// prints 19, 18, 17... 0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wtf