Is there something like python\'s interactive REPL mode, but for Java?
So that I can, for example, type InetAddress.getAllByName( localHostName ) in a window, a
You can use Eclipse Scrapbook pages.
In Eclipse create a Scrapbook page. In your project, New->Other->Scrapbook page.
In the file, enter some text, select it and hit ctrl-U, and there you go.
To manage your imports, right click in the page and select Set Imports, where you can choose to import a package or a single class. This is persistent, and is saved with the page.