Thread: new program
View Single Post
Old 09-01-2012, 03:47 AM   PM User | #4
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
change this
Quote:
// Prompt the user for their wanted salary
System.out.println ("How much money would you like to"
+ " make in a year");
to this
Code:
// Prompt the user for their wanted salary
System.out.println ("How much money would you like to" + 
" make in a year");
note the movement of the +
Also when posting something like this, where you are getting errors, please post the error message along with the line number. It makes finding the problem easier and faster
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote