Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Here is the corrected code import javautilScanner Corrected import statement public class problem2 Fixed class declaration syntax to public static voi...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started