Question: 2. For the following Java code, You should fill in the blank in the following code with A. char B. int C. Boolean D. void
2. For the following Java code, You should fill in the blank in the following code with A. char B. int C. Boolean D. void E. double IJava code public class Test public static void main(String[] args) System.out.print("The grade is " + getGrade(78.5); System.out.print(" InThe grade is " +getGrade(59.5)); public static getGrade(double score) if (score >= 90.0) else if (score >= 80.0) else if (score >= 70.0) else if (score> 60.0) return 'A'; return 'B'; return 'C return 'D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
