Please let me know if you need additional information. =)

Please let me know if you need additional information. =)
Methods To Override :
int compareTo(Object obj) : the signature for this method is
in the Comparable interface. Given two fractions a/b and c/d if
both fractions are equal return 0; if a/b |bc| then then a/b > c/d; otherwise both
fractions are equal. If both fractions are negative to compare
them we similarly look at the values of |ad| and |bc|. If |ad| > |bc|
then a/b bc then then a/b > c/d; If |ad| c/d; if ad > bc then then a/b > c/d; otherwise both
fractions are equal. If a/b and c/d have different signs and a/b
is negative return floor of their
Attachments:

Leave a Reply

Your email address will not be published. Required fields are marked *