Paste: RationalEdit

Author: Cact
Mode: java
Date: Fri, 21 Jan 2011 01:21:03
Plain Text |
public class Rational {
    int num;
    int den;
    int a;
    int b;

    public int ratNum(){
        return (num/den);
    }
    Rational(){
        num = a;
        den = b;
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Rational ratNum = new Rational();
    }

}

New Annotation

Summary:
Author:
Mode:
Body: