| Hints: |
Some
important points to keep in mind in
doing this project:
- The literal
string "Program Initials" appears within parentheses because the string is an argument to a
method.
- Method
names usually are referenced by their following parentheses,
as in println(), so you can distinguish method names from
variable names.
- The print() method is very similar to the println()
method. With println(), after the message prints, the
insertion point appears on the following line. With print(),
the insertion point does not advance to a new line; it
remains on the same line as the output.
- The Java programming language is case sensitive -- the
class names System is a completely different class from one
named system, SYSTEM, or even sYsTeM.
- The Java programming language is based on Unicode, which
is an international system of character representation. The
term letter indicates English-language letters, as well as
characters from Arabic, Greek, and other alphabets.
- Always follow established conventions for the Java
programming language so the programs will be easy for other
programmers to interpret and follow.
- Use white-space to organize your program code and make it
easier to read. White-space is any combination of spaces,
tabs, and carriage returns (blank lines). You cannot use
white-space within any identifier or keyword.
- Java applets do not require a method named main().
- When referring to the String class in the main() method
header, the square brackets indicate an array of String
objects.
- The text editor options can be changed, including syntax
color choices, by selecting options from the tools menu,
then selecting a category under the text editor node
- When using Visual J++, to display the members for a class
or object manually, place your insertion point anywhere in
the class or object name and slect List Members from the
Edit menu or press Ctrl + J. To display parameter
information manually, place your insertion point anywhere in
a statement and select Parameter Info from the Edit menu or
press Ctrl + Shift + I.
- You can open a new project by clicking the New Project
button on the Standard toolbar or by pressing Ctrl + N.
- Visual J++ automatically places eacy curly bracket on its
own line. Any curly brackets that you enter manually should
also be placed on their own lines. Although placing curly
brackets on their own line is not required in Java
programming, it is good practice because it makes your code
easier to read.
- Add comments as the first three lines of every program.
The comments should contain the program name, your name, and
the date.
- The forward slash ( / ) and the backslash ( \ ) characters
are two distinct characters. You cannot use them
interchangeably.
- The name of the Properties command changes to reflect the
name of the current project. For example, your project name
is Hello. If you opened a project named My Project, the the
Properties command on the Project menu would read My Project
Properties.
- In case you
still need help, look in this lecture:
Starting Java
|