I believe you can convert any java code to java class, however you need to download program to compile i suggest [b]DJ Java Decompiler[/b], remember you should download java J2se sdk too.

You can download DJ Java Decompiler from here [url=http://members.fortunecity.com/neshkov/dj.html]http://members.fortunecity.com/neshkov/dj.html [/url]