Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Displaying the result of evaluating an expression

Displaying shows the result of evaluating an expression in the scrapbook editor.

  1. In the scrapbook page, either type an expression or highlight an existing expression to be displayed. For example: System.getProperties();
  2. Click the Display button in the toolbar (or select Display from the selection's pop-up menu.)
  3. The result of the evaluation appears highlighted in the scrapbook editor. The result displayed is either
    • the value obtained by sending toString() to the result of the evaluation, or
    • when evaluating a primitive data type (e.g., an int ), the result is the simple value of the result.

For example:

  • Type and highlight new java.util.Date() in the editor, and click Display. A result such as (java.util.Date) Tue Jun 12 14:03:17 CDT 2001 appears in the editor.
  • As another example, type and highlight 3 + 4 in the editor, and press Display. The result (int) 7 is displayed in the editor.

Related concepts
Scrapbook

Related tasks
Executing an expression
Inspecting the result of evaluating an expression
Viewing runtime exceptions

Related reference
Java scrapbook page


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire