- Category:
- Applet
- Tags:
-
[Java]
[源码]
- File Size:
- 4kb
- Update:
- 2012-11-29
- Downloads:
- 0 Times
- Uploaded by:
- 酥酥念
Description: The definition of a class of Fact unsigned rational numbers (fractions), members of the molecules (num) and denominator (den)
Constructor 2
Get method
A group set method
Method:
- Compare the size of the two fractions, the result is the value of the boolen
- About points on the score (the numerator and denominator by dividing the greatest common divisor)
- The common denominator (the first about points on two scores)
- The two scores are added, the result is a the irreducible number (first common denominator, and then about points)
The definition testFact class, create Fact objects and call the various methods
To Search:
File list (Check if you may need any files):
Fact\.classpath
....\.project
....\.settings\org.eclipse.jdt.core.prefs
....\bin\testFact.class
....\...\Fact.class
....\src\Fact.java
....\...\testFact.java
....\.settings
....\bin
....\src
Fact