• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

inpteractive input with println and readLine...help!  RSS feed

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bartender
Posts: 9509
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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).
 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh I've got it, now it'll compile, just one of those silly little mistakes Thank ya!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!