Inspect the following code for syntax errors, correct the error by stating the line number and re-write the line of code involved. You do not have to re-write the entire program. There are six errors.
1 import java.lang.Scanner;
2
3 public class PositiveNegative
4 {
5 public static main(String [] args)
6 {
7 double number = 0;
8
9 Scanner input = new Scanner(system.in);
10
11 System.out.print("Enter a number ==> ");
12 number = input.nextDouble()
13
14 if (number < 0) then
15 System.out.println("Negative ");
16 else
17 System.out.println("Positive");
18 )
19 }
import java.util.Scanner; // change lang to util
public class PositiveNegative {
public static void main(String[] args) { // add void here
double number = 0;
Scanner input = new Scanner(System.in); // use System instead of system
System.out.print("Enter a number ==> ");
number = input.nextDouble(); // end statement with ;
if (number < 0) // remove then here
System.out.println("Negative ");
else
System.out.println("Positive");
}// replace ) with }
}

Inspect the following code for syntax errors, correct the error by stating the line number and...