|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Rational
Rational numbers (those that can be expressed as the ratio of two integers).
| Constructor Summary | |
Rational(long num,
long denom)
Create the rational number num/denom. |
|
| Method Summary | |
Rational |
multiply(Rational a,
Rational b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Rational(long num,
long denom)
| Method Detail |
public Rational multiply(Rational a,
Rational b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||