One of hundreds of answers available with our premium content service.
A: Sounds like you're looking for a user interface where you can enter Java statements and execute them. The BlueJ interactive Java environment is designed for people who are new to Java programming and lets you execute arbitrary Java statements to see how they work.
You also need to download and install a recent Java Software Development Kit first, version 6 is recommended, but all code is handled through BlueJ.
Start BlueJ, go to the View menu and the set the Code Pad visible. Type statements in the Code Pad area and they will be executed when you press the Enter key. If you include System.out.println() statements they will automatically open a Terminal Window to display the output, as follows.
… full answer hidden
Premium members click below for full answer
Is there a tool to type Java code and see what happens?