Test your Java code on-line !!!
Recently, by reading JavaRSS, I discovered a very nice site that permits us to type and run piece of Java code.
That site is Zamples
But what is very nice is that you have possibility to choose the JDK.
So, you can decide to run your code by using JDK 5.0, but also by usng JDK 6.0.
It's really simple to use.
- Go to that URL: http://www.zamples.com/JspExplorer/index.jsp?format=jdk16cl
- Update the sample class
- Click on the Run It button
- Your class is compiled and executed
- Result appears on the right
Hereunder a screenshot of a little java class that display the version of the JRE, but also the parameters given as input.
Please note that signature of the main method is
public static void main(<strong>String...</strong> args) {}
If you compile it with an old JDK, it will never compile. That new notation has been introduced with Tiger (JDK 5.0)

Note also that they are using build 13 of the JRE 6.0.
I hope they will update the used JDK with the last build available on java.net. That would be really great.
- Login or register to post comments
- Printer-friendly version
- vbrabant's blog
- 26591 reads





