You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Fraction extends Number implements Comparable<Fraction> {
809
+
public class Fraction extends Number implements Comparable<Fraction> { // fraction class is a child of Number and implements the Comparable interface
810
810
...
811
811
}
812
812
</code>
@@ -820,7 +820,7 @@ public class Fraction extends Number implements Comparable<Fraction> {
820
820
821
821
<programxml:id="java-comparable2"language="java">
822
822
<code>
823
-
public int compareTo(Fraction other) {
823
+
public int compareTo(Fraction other) { // compare this fraction with another fraction
0 commit comments