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
Scala also offers an interactive console. I was able to use it to get a result for the expression in your question by fully qualifying InetAddress, as in: