On the first error I think you need to do something like this:Originally posted by hipopony66
I get errors on the following lines when I try to compile. I'm using jdk1.5.0
This gives the error on the "." between Scanner and create. It says I gave a value and a class is expected.Code:Scanner scan = Scanner.create(System.in);
Also the following code gives an error on the "-" sign:
[/B]Code:recovertime = repcost/(oldopcost - newopcost)
On the second error it looks as if you are missing semicolon[;].Code:Scanner stdin = new Scanner(System.in);
I don't know if this will help or not. I can't test it because I haven't downloaded sdk 1.5 yet.




Reply With Quote