Chapter 3: Using (Tomcat web hosting) the Basic Building Blocks 65

Chapter 3: Using the Basic Building Blocks 65 The first */(after Intentionally displays) ends the traditional comment prematurely. Then the battlesand carefullystatements aren t commented out, and the last */chokes the compiler. So the best way to comment out code is to use end-of-line comments. But typing two slashes for each of ten lines can be tedious. Fortunately, JCreator has a good shortcut. Here s how it works: 1. Select the lines that you want to comment out. 2. From the JCreator menu bar, choose Edit.Format.Increase Comment Indent. When you do this, each selected line becomes an end-of-line comment. End-ofline comments can contain traditional comments (and end-of-line comments can contain other end-of-line comments) so you can comment out the Parents, pick your battles carefully!code with no unwanted side effects. If you decide later to uncomment the code, that s easy, too: 1. Select the lines that you no longer want to be commented out. 2. From the JCreator menu bar, choose Edit.Format.Decrease Comment Indent. Typing Your Own Code Chapter 2 is about running someone else s Java code (code that you download from this book s Web site). But eventually, you ll write code on your own. This section shows you how to create code with the JCreator development environment. The version of JCreator on this book s CD-ROM has a specially customized MyProjectsdirectory. The MyProjectsdirectory contains several ready- made workspaces. One of these workspaces (named MyWorkspace) has no projects in it. Here s how you create a project in MyWorkspace: 1. Launch JCreator. 2. From JCreator s menu bar, choose File.Open Workspace. An Open dialog box appears. 3. In the Open dialog box, select MyWorkspace.jcw (or simply MyWorkspace). Then click Open. Clicking Open may coax out a message box asking whether you want to Save the workspace modifications? If so, click Yes. Clicking Open may coax out another box asking if you want to . . . close all document Windows? If so, click Yes.
Do you want something as professional as you are? Well, we are, but our plans are even better, please check Web Hosting SSH and look why we are the best.

Leave a Reply