The JDT contributes a scrapbook facility that can be used to experiment and evaluate Java expressions (such as code snippets). Java scrapbook errors are reported in the editor. Snippets are edited and evaluated in the Scrapbook page editor. In the editor you can select a code snippet, evaluate it, and display the result as a string or show the result object in the debugger's expressions view.
Java development tools (JDT)
Debugger
Creating a
Java scrapbook page
Displaying the
result of evaluating an expression
Inspecting the
result of evaluating an expression
Using content/code assist
Viewing compilation
errors and warnings
New Java Scrapbook Page wizard
Java scrapbook page
Expressions view