Question: 2. (10 pts) The following program has many compilation errors. Underline each of the compilation errors, then rewrite each statement (even the correct ones)

2. (10 pts) The following program has many compilation errors. Underline each of the compilation errors, then rewrite each statement (even the correct ones) so that all these errors are fixed. Do not change statements that are already valid. (Note: the program itself does not do anything useful.) \\problem 2-CISC 1115 Spring 2021 - Exam1 */*/ Important java.utility.Scanner; public class problem2 ( public dynamic void maine(String[] args) [ finally integer TEN = 9; ints j; k; m=10; real j: character myex; Strung hisStr; Scanner in old Scanner(System.input); j+k=m; while (k = 5) Jin..nextInteger(); his Str = input.nextString(); System.out.println (TEN + "hisStr " +j); if (sum != m) System.out.println (m-5) in shut0:
Step by Step Solution
There are 3 Steps involved in it
Here is the corrected code import javautilScanner Corrected import statement public class problem2 Fixed class declaration syntax to public static voi... View full answer
Get step-by-step solutions from verified subject matter experts
