Write a program that will check a Java file for syntax errors. The program will
ID: 3699651 • Letter: W
Question
Write a program that will check a Java file for syntax errors. The program will ask for an in file name and output-file name and will then copy all the code from the Java input file to the Java output file, but with the following changes: put- Any syntax error found in the Java input file will be corrected: o Missing compound statements (curly braces) o All comments have to start with// and end with a period Four spaces should be used as the unit of indentation. Tabs must be set exactly every 8 spaces (not 4). . You program should have a simple GUI (Graphical User Interface). Use ArrayList or LinkedList class to solve the problem. Thoroughly test your code for any possible input. Do not hardwire the output.Explanation / Answer
//Variables must be initialised
int n1 = 0 , n2 = 0 ;
n1 = 5;
n2 = 10;
int answer = 0;
answer = n1 + n2 ;
System.out.println(answer)
Is ArrayList/LinkedList difference question ?
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.