How to quickly try out Java code?
<p>When I'm coding in Python and I want to try something out, I open IDLE of Python on the command line and am able to quickly try something out. Is there a similar way I could do that for Java?</p>

<p>I have heard about Java "shells" (e.g. <a href="http://www.beanshell.org/" rel="nofollow">http://www.beanshell.org/</a>). Has anyone tried them?</p>
