The JDT contributes a scrapbook facility that can be used to experiment and evaluate Java expressions (i.e., code snippets). 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 inspector.