Question: (Here is DebugMe.java code) /* Name: FileName: DebugMe.java Assignment: Bonus Lab 1.1 Description: Correct the syntax errors in this program so that it will compile

 (Here is DebugMe.java code) /* Name: FileName: DebugMe.java Assignment: Bonus Lab
(Here is DebugMe.java code)

/*

Name:

FileName: DebugMe.java

Assignment: Bonus Lab 1.1

Description: Correct the syntax errors in this program so that it will compile and run.

Place a line comment above or to the right of each line containing an error

describing what the error was and how it was fixed. For example, missing quotation added or misspelled word corrected.

*/

import java.util.*;

public class DebugMe

public static main(String args) {

Scanner input = new Scanner(System.in);

// Declare and initialize variables for age and name

System.out.println("Enter your name");

string name = input.nextInt( );

System.out.println(Enter your age: );

int age = keyboard.nextLine( );

System.out.Println(" Your name is + name + " and your are " + Age + " years old.");

system.out.pritnln("If you are reading this, then you have found all of the errors in this program");

System.out.println("and the last character on this line should be a backslash \");

{

}

Open the file DebugMe.java and correct the syntax errors so the program will compile and run. Place a line comment above or to the right of each line containing an error describing what the error was and how it was fixed. For example, missing quotation added or misspelled word corrected

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!