File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ not worry! An important skill for a computer scientist is to learn what
4545to ignore and what to look at carefully. You will soon find that there
4646are some elements of Java that will fade into the background as you
4747become used to seeing them. One thing that will help you is to learn a
48- little bit about Java [sec:naming \_ conventions] { Naming Conventions} .
48+ little bit about Java ` Naming Conventions < namingconventions.html >`_ .
4949
5050The first question you probably have about this little program is “How
5151do I run it?” Running a Java program is not as simple as running a
@@ -70,7 +70,7 @@ The command ``javac`` compiles our java source code into compiled byte
7070code and saves it in a file called ``Hello.class ``. ``Hello.class `` is a
7171binary file so you won’t learn much if you try to examine the class file
7272with an editor. Hopefully you didn’t make any mistakes, but if you did
73- you may want to consult the [sec:common \_ mistakes] { Common Mistakes}
73+ you may want to consult the ` Common Mistakes < commonmistakes.html >`_
7474section for helpful hints on compiler errors.
7575
7676Now that we have compiled our java source code we can run the compiled
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ variable. If you have ever tried to use a Python variable that you have
176176not initialized the second error message will be familiar to you. The
177177difference here is that we see the message before we ever try to test
178178our program. More common error messages are discussed in the section
179- [sec:common \_ mistakes] { Common Mistakes} .
179+ ` Common Mistakes < commonmistakes.html >`_ .
180180
181181The general rule in Java is that you must decide what kind of an object
182182your variable is going to reference and then you must declare that
Original file line number Diff line number Diff line change 22Naming Conventions
33==================
44
5- {sec:naming\_ conventions}
6-
75Java has some very handy naming conventions.
86
97- Class names always start with an upper case letter. For example,
You can’t perform that action at this time.
0 commit comments