Sunday, December 29, 2013

Programming Magic


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!!! 

4 comments:

  1. http://ideone.com/jujEhv :P

    ReplyDelete
    Replies
    1. That must be a problem in your console. Try again in given online java console. http://www.compileonline.com/compile_java_online.php

      Delete