Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
All Classes
A
C
D
E
F
G
I
M
O
P
T
V
A
Answer
- Class in
<Unnamed>
This class presents fractions of form n/d where n and d are integer numbers.
Answer(int, int)
- Constructor for class
Answer
Constructor.
C
clone()
- Method in class
Answer
Clone of the fraction.
compareTo(Answer)
- Method in class
Answer
Comparision of fractions.
D
divideBy(Answer)
- Method in class
Answer
Quotient of fractions.
E
equals(Object)
- Method in class
Answer
Equality test.
F
fractionPart()
- Method in class
Answer
Extract fraction part of the (improper) fraction (a proper fraction without the integer part).
G
getDenominator()
- Method in class
Answer
Public method to access the denominator field.
getNumerator()
- Method in class
Answer
Public method to access the numerator field.
I
integerPart()
- Method in class
Answer
Integer part of the (improper) fraction.
inverse()
- Method in class
Answer
Inverse of the fraction. n/d becomes d/n.
M
minus(Answer)
- Method in class
Answer
Difference of fractions.
O
opposite()
- Method in class
Answer
Opposite of the fraction. n/d becomes -n/d.
P
plus(Answer)
- Method in class
Answer
Sum of fractions.
T
times(Answer)
- Method in class
Answer
Multiplication of fractions.
toAnswer(double, int)
- Static method in class
Answer
Double value f presented as a fraction with denominator d > 0.
toDouble()
- Method in class
Answer
Approximate value of the fraction.
toString()
- Method in class
Answer
Conversion to string.
V
valueOf(String)
- Static method in class
Answer
Conversion from string to the fraction.
A
C
D
E
F
G
I
M
O
P
T
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
All Classes