This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes inpteractive input with println and readLine...help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "inpteractive input with println and readLine...help!" Watch "inpteractive input with println and readLine...help!" New topic
Author

inpteractive input with println and readLine...help!

Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
Okay, I have to write this program for my com sci class in which I have to have four prompts for four numbers, which are read with the readLine command. I keep getting these bloody awful errors when I try to compile. Can anyone tell me whats wrong with the program?
Here's the code:
and here are the errors I keep getting

[ October 07, 2003: Message edited by: Brandi Love ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8935
    
    9

Originally posted by Brandi Love:



This error indicates you are trying to assign a value of one type to a variable of another type. It may not be obvious at first glance, but "capital D" Double (an object) is not the same thing as a double (a primitive numeric value).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
Ahh I've got it, now it'll compile, just one of those silly little mistakes Thank ya!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inpteractive input with println and readLine...help!