Code
import java.util.Scanner;
class apples{
public static void main(String args[]) {
Scanner chris= new Scanner(System.in);
double fnum, snum, answer;
System.out.println("enter first number");
fnum = chris.nextDouble();
System.out.println("what is the second number");
snum = chris.nextDouble();
answer = fnum + snum;
System.out.println(answer);
}
}
the error i am getting is "Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at bucky.apples.main(apples.java:4)"
can someone help me please
This post was edited by clanwkya on Mar 23 2013 12:45am