use files Rational.java and RationalTest.java
For the Rational class described in lecture, define a method named lessThanRat so that two rational numbers can be compared to determine if the first one is arithmetically “less than” the second one.
For example, the expression a.lessThanRat(b) is true, given
Rational a = new Rational (8, 16);
Rational b = new Rational (2, 3);Attachments

rational number is less than the second one.
*
* @param r The second rational number.
* @return <code>TRUE</code> if first one is less, <code>FALSE</code> otherwise.
*/
public boolean lessThanRat(Rational