Question:

Jcreator Error Message? EASY 10 POINTS!!!!?

by  |  earlier

0 LIKES UnLike

What does the error message in the task list pane <identifier> expected mean after I compile the file?

Here is the program.

import java.util.Scanner;

class Subtract {

public static void main(String args[])

Scanner myScanner = new Scanner(System.in);

double a;

double b;

double total;

System.out.println("a= ");

a = myScanner.nextDouble();

System.out.println("b= ");

b = myScanner.nextDouble();

total = a - b;

System.out.print("Total= ");

System.out.print(total);

}

}

 Tags:

   Report

5 ANSWERS


  1. I have recompiled your code using Eclipse and it ran without any problem. Try rebuild your code and rerun it.


  2. Simple!

    Uhh wth do you have &quot;} }&quot; ?? There&#039;s no other starting bracket!

    Good luck.

  3. lol

  4. wth

  5. It has been so long. Doesnt Jcreate give error message? Or what line the error (it thinks) occured?

    Btw, I see 1 open parenthesis and 2 close parenthesis

Question Stats

Latest activity: earlier.
This question has 5 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions