Skip to content

Commit 966fc09

Browse files
committed
restore extends number
1 parent 8e812b3 commit 966fc09

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎source/Java4Python.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,8 +1620,9 @@ Our full Fraction class to this point would look like the following. You
16201620
may want to try to compile and run the short test program provided just
16211621
to see what happens.
16221622

1623-
::
1624-
1623+
.. livecode:: fraction1
1624+
:language: java
1625+
16251626
public class Fraction {
16261627

16271628
private Integer numerator;
@@ -2031,8 +2032,7 @@ we have discussed is as follows.
20312032
import java.util.ArrayList;
20322033
import java.util.Collections;
20332034

2034-
2035-
public class Fraction implements Comparable<Fraction> {
2035+
public class Fraction extends Number implements Comparable<Fraction> {
20362036

20372037
private Integer numerator;
20382038
private Integer denominator;

0 commit comments

Comments
 (0)