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 passFallint grade will modify result to "fail" if the grade is less than
We have to use the following blocks :
a String result "fail";
b public static void passFailString result
c public static void passFailint grade
d if grade
e if grade
f result "fail"
h System.out.printlnresult;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
