Question: Java programming The following program contains 7 errors. Correct the errors and submit a working version of the program. The corrected version of the program
Java programming
The following program contains 7 errors. Correct the errors and submit a working version of the program. The corrected version of the program should produce the following output a is the smallest! C Revert Type your solution here: 1 public class Oops4 { 2 public static void main(String[] args) int a- 7, b- 42; minimum(a, b); if (smallera 4 System.out.println("a is the smallest!"); 7 10 public static void minimum(int a, int b) if(a b) f int smaller - b; 15 16 17 18 return int smaller
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
