I'm glad you believe the exercise is successfully completed. Let's hope your teacher feels the same way :D
Type: Posts; User: Sean4u
I'm glad you believe the exercise is successfully completed. Let's hope your teacher feels the same way :D
If that's an Eclipse error, it's a bit misleading. Java can convert from double to int, it just won't do it implicitly (without you telling it to do it). I think the error message from the ordinary...
Can you explain what
is doing? What happens if you remove the cast to double?
That's a funny-looking compiler error. What are you compiling that with? Did you write the Keyboard class?
Is this a copy of the code in your book, or did you add something to some code that...
Can you copy and paste the error message you got?
This looks familiar!
http://www.javaprogrammingforums.com/java-theory-questions/10683-total-noob-question.html
Are you two taking the same class?