Question: 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

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 javax.util.Scanner; 3 public class PositiveNegative public static void main(String() args) double number = 0; Scanner input = new Scanner(); System.out.print ("Enter a number ==> ") number = input.nextDouble(); if (number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
