Skip to content

Commit e0796f8

Browse files
committed
made half programs that won't run on its own in a different format
1 parent 4359d36 commit e0796f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch6_definingclasses.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public Fraction(Integer num, Integer den) {
281281
</p>
282282

283283
<listing xml:id="java-fraction-class-addition-initial">
284-
<program language="java">
284+
<program>
285285
<code>
286286
public Fraction add(Fraction otherFrac) {
287287
Integer newNum = otherFrac.getDenominator() * this.numerator +
@@ -306,7 +306,7 @@ public Fraction add(Fraction otherFrac) {
306306
</p>
307307

308308
<listing xml:id="java-fraction-class-addition-equivalent">
309-
<program language="java">
309+
<program>
310310
<code>
311311
public Fraction add(Fraction otherFrac) {
312312
Integer newNum = otherFrac.getDenominator() * numerator +
@@ -368,7 +368,7 @@ public Fraction add(Fraction otherFrac) {
368368
</p>
369369

370370
<listing xml:id="java-method-overloading">
371-
<program language="java">
371+
<program>
372372
<code>
373373
public Fraction(Integer num) {
374374
this.numerator = num;

0 commit comments

Comments
 (0)