Wednesday, December 27, 2006

A Java Program in Unicode

Here is one of my favourite Java programs - written entirely in Unicode. Who says you need to declare a class or even have any Java keywords?!

/*
\u0050\u0076\u0064\u004c\u0020\u0031\u0020\u0041\u0070\u0072\u0039\u0036
\u002a\u002f\u0020\u0063\u006c\u0061\u0073\u0073\u0020\u0068\u0020\u007b
\u0020\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0020\u0020\u0020
\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0020\u0076\u006f\u0069\u0064
\u006d\u0061\u0069\u006e\u0028\u0020\u0053\u0074\u0072\u0069\u006e\u0067
\u005b\u005d\u0061\u0029\u0020\u007b\u0053\u0079\u0073\u0074\u0065\u006d
\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e
\u0028\u0022\u0048\u0069\u0021\u0022\u0029\u003b\u007d\u007d\u002f\u002a
*/

Save as h.java, compile and run!

5 comments:

  1. Anonymous1:23 PM

    really enjoyed your code.

    Rajesh Vaghela
    SoftCrop Technology

    ReplyDelete
  2. Anonymous5:42 PM

    above code doesnot run!

    ReplyDelete
  3. Anonymous7:44 AM

    i want to convert a jsp page into another(hindi)jsp page....as we see in most of news sites....conversion of page into local language....


    plz mail me code sir.....its very urgent

    my email: abhishekkashliwal@gmail.com

    ReplyDelete
  4. Anonymous1:23 PM

    Hi! i really enjoyed it:)

    ReplyDelete

Note: Only a member of this blog may post a comment.