java-'identifier expected'?
I am new to java so this may be a really basic error but just what does identifier expected actually mean?
Ive read through my source code several times, but still got work out what the problem is!
Here is my source code:
import java.util.Scanner;
public class inputanum
{
//main method
public static void main(String[]args);
//new scanner object
Scanner input=new Scanner(System.in);
//Variables declared
double Number=0;
//number?
System.out.print("what is the Number");
Number= input.nextDouble();
//First IF
if(Number=<10)
System.out.println ("less than 10");
else if
((Number>=10) && (Number <=100)
System.out.println("Number between 10 and 100");
else if
(number>100)
System.out.println("Number is more than 100");
}
}
Can anybody see the problem?
any help will be much appreciated.
|