Please solve using Java eclipse
No stack over flow!!
data and code
make run !
Question 6 (coder) In the box provided for this question, enter the code for the int method getGoodValue, one that receives two int values as inputs where it is assumed that the first value is lower than the second value. You are to write the method that continues to solicit a value between the two inputs (inclusive) from the user. When the user inputs a value lying between the desired range, the computer returns this value as the function's result. Given that the user inputs a value out of range, the machine displays a "too lower" or a "too high" message, prompting the user for another value. A sequence of six sample calls (with different inputs) and the run of the sequence with sample inputs is shown on the Sheet for this question. Question 6 Code for calls result = getGood V alue (1,9); System.out.printf("Thank you for the \%d. n ", result); System.out.printf("'n"); result = getGoodValue (7,11); System.out.printf("Thank you for the \%d. In", result); System.out.printf(" n "): result = getGoodValue (3,18); System.out.printf("Thank you for the \%d.ln, result); System.out.printf("nn"); result =getGoodValue(200,800); System.out.printf("Thank you for the \%d. n, result); System.out.printf("'n"); result = getGoodValue (25,50); System.out.printf("Thank you for the \%d.ln, result); System.out.printf(")n"); result = getGoodValue (12,20); System.out.printf("Thank you for the \%d. In, result); System.out.printf(" n "); Run of the above Enter a value between 1 and 9 , inclusive: 1 Thank you for the 7. Enter a value between 7 and 11 , inclusive: 12 The value must be at most 11 . Try again: 4 The value must be at least 7 . Try again: 15 The value must be at most 11. Try again: 2 Thank you for the 9 . Enter a value between 3 and 18 , inclusive: 20 The value must be at most 18 . Try again: 28 The value must be at most 18 . Try again: 15 Thank you for the 15 . Enter a value between 200 and 800 , inclusive: 190 The value must be at least 200 . Try again: 921802 The value must be at most 800 . Try again: 921 The value must be at most 800 . Try again: 184 The value must be at least 200 . Try again: 459 Thank you for the 459 . Enter a value between 25 and 50 , inclusive: 50 Thank you for the 50 . Enter a value between 12 and 20, inclusive: 12 Thank you for the 12