In some Java IDEs (BlueJ and DrJava, for example), the user can open an interaction window where Java expressions and statements can be typed in. The IDE quickly compiles and runs the code, displaying the returned value if necessary.
In BlueJ, it's called the Code Pad. It's similar in spirit to the Interaction Pane in DrRacket/DrScheme.
Does something like this exist for Eclipse?
You may be looking for Scrapbook pages. Here's a write-up and here are other SO questions which talk about it.
There is also the Display View, which allows executing code while debugging. It's handy, because it evaluates in the context of the current stack frame.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With