intermediate/RationalTest

From ggc

Jump to: navigation, search

01 package intermediate;
02 //start auto-imports
03 import java.awt.*;
04 //end auto-imports
05 
06 
07 /**
08  * All about my application.
09  @author My Name Here
10  */
11 public class RationalTest
12 {
13   public static void main(String[] args)
14   {
15     Rational rational=new Rational(12);
16     double m=rational.getValue();
17     System.out.println("m is "+m);
18     //Point bad=rational.getPair();
19     //bad.y=0;
20     int bottom=rational.getDenominator();
21     bottom=0;
22     m=rational.getValue();
23     System.out.println("m is "+m);
24 
25     int x=6;
26     int y=x;
27     x=5;
28     System.out.println(y);
29 
30     System.out.println(Rational.getEpsilon());
31   }
32 }


Download/View intermediate/RationalTest.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter