Skip to content

Commit 922c4c9

Browse files
authored
Merge pull request #338 from DieuMerci225/chapter6_8listing
I added the listing tags and placed the ref tag in the beginning paragraph
2 parents 3fd0c7c + 2f10a33 commit 922c4c9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/ch6_definingclasses.ptx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,11 +922,11 @@ private static Integer gcd(Integer m, Integer n) {
922922
<title>Full Implementation of the Fraction Class</title>
923923

924924
<p>
925-
Here is a final version of the <c>Fraction</c> class in Java, which includes all the features we discussed:
925+
<xref ref="java-final-fraction-class" text="type-global"/> shows a final version of the <c>Fraction</c> class in Java, which includes all the features we discussed:
926926
</p>
927927

928928

929-
<program xml:id="java-final-fraction-class" interactive="activecode" language="java">
929+
<listing xml:id="java-final-fraction-class"> <program interactive="activecode" language="java">
930930
<code>
931931
import java.util.ArrayList;
932932
import java.util.Collections;
@@ -1020,6 +1020,7 @@ public class Fraction extends Number implements Comparable&lt;Fraction&gt; {
10201020
}
10211021
</code> <tests> </tests>
10221022
</program>
1023+
</listing>
10231024
</section>
10241025

10251026
<section xml:id="java_classes_summary">

0 commit comments

Comments
 (0)