Question: given the variable static String result = pass; Drag and arrange the code blocks below so that the method passFall ( int grade ) will

given the variable
static String result = "pass";
Drag and arrange the code blocks below so that the method passFall(int grade) will modify result to "fail" if the grade is less than 65.
We have to use the following blocks :
a) String result = "fail";
b) public static void passFail(String result){
c) public static void passFail(int grade)
d) if (grade <65)
e) if (grade <=65)
f) result = "fail"
h) System.out.println(result);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!