| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Executing an expression |
| </title> |
| </head> |
| <body> |
| <h1> |
| Executing an expression |
| </h1> |
| <p> |
| Executing an expression evaluates an expression but does not display a result. |
| </p> |
| <p> |
| If you select the expression to execute and click the <strong>Execute</strong> button in the toolbar, no result is |
| displayed, but the code is executed. |
| </p> |
| <p> |
| For example, if you type and highlight <code>System.out.println("Hello World")</code>, and click the <strong>Execute</strong> button, <em>Hello World</em> |
| appears in the Console view, but no result is displayed in the scrapbook editor or the Expressions view. |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br> |
| <a href="../concepts/concepts-6.htm">Java views</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br> |
| <a href="../tasks/tasks-151.htm">Displaying the result of evaluating an expression</a><br> |
| <a href="../tasks/tasks-150.htm">Inspecting the result of evaluating an expression</a><br> |
| <a href="../tasks/tasks-156.htm">Viewing runtime exceptions</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.png" alt="Related reference" ><br> |
| <a href="../reference/ref-56.htm">Expressions view</a><br> |
| <a href="../reference/ref-45.htm">Console view</a><br> |
| </p> |
| |
| </body> |
| </html> |
| |