Author: | Cact |
---|---|
Mode: | java |
Date: | Fri, 21 Jan 2011 01:12:34 |
public class Rational { int a; int b; public int ratNum(){ return (a/b); } Rational(){ a = 5; b = 1; } /** * @param args the command line arguments */ public static void main(String[] args) { Rational ratNum = new Rational(); } }