# run I am getting this error message:here is my program import java.util.*;public class TestRationaltwo {public static void main(String[] args) { Scanner input=new Scanner(System.in); Rational[] number=new Rational[10000];for(int i=1;iotherfrac)return 1;else if(fraction==otherfrac)return 0;else return -1; }public boolean equals(Rational r) {double fraction=this.numerator/this.denominator;double otherfrac=r.numerator/r.denominator;if(fraction==otherfrac)return true;else return false; }public String toString() { String s=(numerator+"/"+denominator);return s; }public Rational fration(Rational r) {long num=r.numerator;long den=r.denominator;return new Rational(num,den); }private long gcd(long num,long den) {if(den==0)return num;return gcd(den,num%den); } } this is my error messageException in thread "main" java.lang.NullPointerException??? at TestRationaltwo.main(TestRationaltwo.java:10)Solution details:STATUS Answered QUALITY Approved ANSWER RATING This question was answered on: Apr 19, 2020 PRICE: \$15 Solution~000.zip (25.37 KB) Buy this answer for only: \$15 This attachment is locked × Please Enter The Email Where You Want To Receive Solution. Get this solution for only: \$

STATUS

QUALITY

Approved

Apr 19, 2020

EXPERT

Tutor

#### YES, THIS IS LEGAL

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

• As a reference for in-depth understanding of the subject.
• As a source of ideas / reasoning for your own research (if properly referenced)
• For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

### Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.