I found this cool programming trick on a StackOverflow question. I won't give the original link yet, because there it explains how it works, and that will stop you from thinking, which spoils the real fun.
Here is the simple Java code. If you are too lazy to open your IDE, use this. :)
Think yourself!!!
http://ideone.com/jujEhv :P
ReplyDeleteThat must be a problem in your console. Try again in given online java console. http://www.compileonline.com/compile_java_online.php
Deletehttp://ideone.com/MArNZO :)
Deletemoving ahead
Delete