Skip to content

Commit c9a8954

Browse files
committed
add labels to more sections
1 parent 2c5a55d commit c9a8954

22 files changed

+240
-0
lines changed

texfiles/0.intro.tex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ \chapter{Computers, \mbox{Objects}, and Java}
88

99
\CObegin
1010
\secCOBH{Objectives}
11+
\label{objectives}
1112
\noindent After studying this chapter, you will
1213

1314
\begin{COBL}
@@ -23,6 +24,7 @@ \chapter{Computers, \mbox{Objects}, and Java}
2324
\end{COBL}
2425

2526
\secCOLH{Outline}
27+
\label{outline}
2628
\begin{COL}
2729
\item Welcome
2830
\item What Is a Computer?
@@ -1205,6 +1207,7 @@ \subsection{Principles of \mbox{Object-Oriented} Design}
12051207

12061208

12071209
\secSMHtwo{Summary of Important Points}
1210+
\label{summaryof-important-points}
12081211
\begin{SMBL}
12091212
\item A computer system generally consists of input/output devices,
12101213
primary and secondary memory, and a central processing unit. A
@@ -1285,6 +1288,7 @@ \subsection{Principles of \mbox{Object-Oriented} Design}
12851288
\end{SMBL}
12861289

12871290
\secEXRHtwo{Exercises}
1291+
\label{exercises}
12881292
%%\section{Exercises}
12891293
\label{exercises}
12901294
\begin{EXRtwo}

texfiles/1.programs.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ \chapter{Java Program Design and Development}
1313

1414
\CObegin
1515
\secCOBH{Objectives}
16+
\label{objectives}
1617
\noindent After studying this chapter, you will
1718

1819
\begin{COBL}
@@ -32,6 +33,7 @@ \chapter{Java Program Design and Development}
3233

3334

3435
\secCOLH{Outline}
36+
\label{outline}
3537
\begin{COL}
3638
\item Introduction
3739
\item Designing Good Programs
@@ -1195,6 +1197,7 @@ \subsection{Expressions and Operators}
11951197
{\tt false}.}
11961198

11971199
\secEXRHone{Self-Study Exercises}
1200+
\label{self-study-exercises}
11981201
\begin{SSTUDY}
11991202

12001203
\item What is stored in the variable {\tt num} after the following
@@ -2077,6 +2080,7 @@ \section{From the Java Library: System and \\PrintStream}
20772080
part of object-oriented programming in Java.}
20782081

20792082
\secEXRHone{Self-Study Exercises}
2083+
\label{self-study-exercises}
20802084
\begin{SSTUDY}
20812085
\marginnote{\small\tt
20822086
**********\\
@@ -2096,7 +2100,9 @@ \section{From the Java Library: System and \\PrintStream}
20962100
\end{SSTUDY}
20972101

20982102
\secSMH{Chapter Summary}
2103+
\label{chapter-summary}
20992104
\secKTH{Technical Terms}
2105+
\label{technical-terms}
21002106
\begin{KT}
21012107
algorithm
21022108

@@ -2150,6 +2156,7 @@ \section{From the Java Library: System and \\PrintStream}
21502156

21512157

21522158
\secSMHtwo{Summary of Important Points}
2159+
\label{summaryof-important-points}
21532160
\begin{BL}
21542161

21552162
\item Good program design requires that each object and method
@@ -2308,7 +2315,9 @@ \section{From the Java Library: System and \\PrintStream}
23082315
%%\section{Exercises}
23092316
\label{exercises}
23102317
\secEXRHtwoleft{Exercises}
2318+
\label{exercises}
23112319
%%%\secEXRHtwo{Exercises}
2320+
\label{exercises}
23122321
\begin{EXRtwo}
23132322

23142323
\item Fill in the blanks in each of the following statements.
@@ -2535,6 +2544,7 @@ \section{From the Java Library: System and \\PrintStream}
25352544
called {\tt num} and store in it the difference between 61 and 51.
25362545

25372546
\secEXRHone{UML Exercises}
2547+
\label{uml-exercises}
25382548

25392549
\item Modify the UML diagram of the {\tt Riddle}
25402550
class to contain a method named {\tt getRiddle()} that would return

texfiles/10.exceptions.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ \chapter{Exceptions: When Things Go Wrong}
1010

1111
\CObegin
1212
\secCOBH{Objectives}
13+
\label{objectives}
1314
\noindent After studying this chapter, you will
1415

1516
\begin{COBL}
@@ -22,6 +23,7 @@ \chapter{Exceptions: When Things Go Wrong}
2223
\end{COBL}
2324

2425
\secCOLH{Outline}
26+
\label{outline}
2527
\begin{COL}
2628
\item {Introduction}
2729
\item {Handling Exceptional Conditions}
@@ -306,6 +308,7 @@ \section{Java's Exception Hierarchy}
306308
\end{table}
307309

308310
\secEXRHone{Self-Study Exercise}
311+
\label{self-study-exercise}
309312
\begin{SSTUDY}
310313
\item What type of exception would be thrown for the following statements?
311314

@@ -425,6 +428,7 @@ \subsection{The {\tt Exception} Class}
425428

426429

427430
\secEXRHone{Self-Study Exercise}
431+
\label{self-study-exercise}
428432
\marginfig{chptr10/excuml.eps}{The {\tt java.lang.Ex\-cep\-tion} class.}
429433
{fig-excuml}
430434

@@ -1009,6 +1013,7 @@ \subsection{Exception Propagation: Searching for a Catch Block}
10091013
clause.
10101014

10111015
\secEXRHone{Self-Study Exercises}
1016+
\label{self-study-exercises}
10121017
\begin{SSTUDY}
10131018

10141019
\item Suppose a program throws an {\tt ArrayIndexOutOf\-Bounds\-Exception}.
@@ -1670,6 +1675,7 @@ \subsection{To Fix or Not to Fix}
16701675
array will grow and shrink dynamically during the program's execution.}
16711676

16721677
\secEXRHone{Self-Study Exercise}
1678+
\label{self-study-exercise}
16731679
\begin{SSTUDY}
16741680

16751681
\item For each of the following exceptions, determine whether it can be
@@ -1901,6 +1907,7 @@ \section{Creating and Throwing Your Own \\ Exceptions}
19011907
\end{figure}
19021908

19031909
\secEXRHone{Self-Study Exercises}
1910+
\label{self-study-exercises}
19041911
\begin{SSTUDY}
19051912

19061913
\item Define a new {\tt Exception} named {\tt FieldIsEmpty\-Exception},
@@ -2060,8 +2067,10 @@ \section{From the Java Library: {\tt JOptionPane}}
20602067
on good program design for creating useful, stable programs.
20612068

20622069
\secSMHleft{Chapter Summary}
2070+
\label{chapter-summary}
20632071

20642072
\secKTH{Technical Terms}
2073+
\label{technical-terms}
20652074
\begin{KT}
20662075
catch block
20672076

@@ -2098,6 +2107,7 @@ \section{From the Java Library: {\tt JOptionPane}}
20982107
\end{KT}
20992108

21002109
\secSMHtwo{The Try/Catch Statement}
2110+
\label{the-try-catch-statement}
21012111

21022112
\noindent The {\tt try/catch/finally} statement has the following syntax:
21032113

@@ -2140,6 +2150,7 @@ \section{From the Java Library: {\tt JOptionPane}}
21402150
which are called from a {\tt try} block.
21412151

21422152
\secSMHtwo{Summary of Important Points}
2153+
\label{summaryof-important-points}
21432154

21442155
\begin{SMBL}
21452156
\item In Java, when an error or exceptional condition occurs,
@@ -2404,6 +2415,7 @@ \section{From the Java Library: {\tt JOptionPane}}
24042415

24052416

24062417
\secEXRHtwo{Exercises}
2418+
\label{exercises}
24072419
\marginnote{\raggedright\vspace{9pt}{\bf Note:} For programming exercises, {\bf first} draw
24082420
a UML class diagram describing all classes and
24092421
their inheritance relationships and/or associations.}

texfiles/11.files.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ \chapter{Files and Streams: Input/Output Techniques}
99
\CObegin
1010

1111
\secCOBH{Objectives}
12+
\label{objectives}
1213

1314
\noindent After studying this chapter, you will
1415

@@ -23,6 +24,7 @@ \chapter{Files and Streams: Input/Output Techniques}
2324
\end{COBL}
2425

2526
\secCOLH{Outline}
27+
\label{outline}
2628

2729
\begin{COL}
2830
\item {Introduction}
@@ -368,6 +370,7 @@ \subsection{Input and Output Streams}
368370
%\section{CASE STUDY}\begin{casestudy}{Reading and Writing Text Files}
369371
\label{casestud-ybegin-readingand-writing-text-files}
370372
%%%\secCSFHleft{CASE STUDY: Reading and Writing Text Files}
373+
\label{casestudy-readingand-writing-text-files}
371374
\section{CASE STUDY: Reading and Writing Text Files}
372375
\label{casestudy-readingand-writing-text-files}
373376
\noindent Let's write a GUI application that will be able to
@@ -684,6 +687,7 @@ \subsection{Code Reuse: Designing Text File Output}
684687
to help you to design I/O methods for other tasks.
685688

686689
\secEXRHone{Self-Study Exercise}
690+
\label{self-study-exercise}
687691
\begin{SSTUDY}
688692
\item Is it possible to perform output to a text file using a
689693
{\tt PrintWriter} and a {\tt FileWriter} stream in combination? If so,
@@ -909,6 +913,7 @@ \subsection{Reading from a Text File}
909913
{\tt null}, that means the file is empty and the loop body will be skipped.}
910914

911915
\secEXRHone{Self-Study Exercise}
916+
\label{self-study-exercise}
912917
\begin{SSTUDY}
913918

914919
\item What's wrong with the following loop for reading
@@ -1004,6 +1009,7 @@ \subsection{Code Reuse: Designing Text File Input}
10041009
which particular read or write method you use.
10051010

10061011
\secEXRHone{Self-Study Exercise}
1012+
\label{self-study-exercise}
10071013
\begin{SSTUDY}
10081014

10091015
\item What's wrong with the following loop for reading
@@ -1307,6 +1313,7 @@ \subsection{Validating File Names}
13071313
{\tt IOException}s.
13081314

13091315
\secEXRHone{Self-Study Exercise}
1316+
\label{self-study-exercise}
13101317
\begin{SSTUDY}
13111318

13121319
\item The other methods of the {\tt File} class are
@@ -1693,6 +1700,7 @@ \subsection{Reading Binary Data}
16931700

16941701
\pagebreak
16951702
\secEXRHone{Self-Study Exercise}
1703+
\label{self-study-exercise}
16961704
\begin{SSTUDY}
16971705

16981706
\item Identify the error in the following method, which is supposed to read
@@ -2195,6 +2203,7 @@ \subsection{The {\tt ObjectIO} Class}
21952203

21962204
\pagebreak
21972205
\secEXRHone{Self-Study Exercise}
2206+
\label{self-study-exercise}
21982207
\begin{SSTUDY}
21992208

22002209
\item Given the following definition, would a binary file consisting of
@@ -2491,8 +2500,10 @@ \section*{Special Topic: Databases and Personal Privacy}
24912500

24922501

24932502
\secSMH{Chapter Summary}
2503+
\label{chapter-summary}
24942504

24952505
\secKTH{Technical Terms}
2506+
\label{technical-terms}
24962507

24972508
%\parindent=0pt
24982509
\begin{KT}
@@ -2549,6 +2560,7 @@ \section*{Special Topic: Databases and Personal Privacy}
25492560
%%%REW\clearpage
25502561

25512562
\secSMHtwo{Summary of Important Points}
2563+
\label{summaryof-important-points}
25522564
\begin{SMBLlarge}
25532565
\item A {\it file} is a collection of data stored on a disk.
25542566
A {\it stream} is an object that delivers data to and from other
@@ -2698,7 +2710,9 @@ \section*{Special Topic: Databases and Personal Privacy}
26982710

26992711
%\section*{}{Exercises}
27002712
%%\secEXRHtwoleft{Exercises}
2713+
\label{exercises}
27012714
\secEXRHtwo{Exercises}
2715+
\label{exercises}
27022716
\marginnote{\raggedright\vspace{9pt}{\bf Note:} For programming exercises, {\bf first} draw
27032717
a UML class diagram describing all classes and
27042718
their inheritance relationships and/or associations.}

0 commit comments

Comments
 (0)