Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Identifier error, my assingments due by midnight! Please help :D

 
Nick Harms
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help, at the end in this line

System.out.println("The area of your room is " + area.);

I am getting an error for an identifier expected, please respond, this is due by midnight.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick,
Welcome to the Ranch.

In future, while posting code, please UseCodeTags
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What is the period (.) doing after area?
If you want to be grammatically correct , you should have

 
Nick Harms
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
What is the period (.) doing after area?
If you want to be grammatically correct , you should have



Thank you so much!! I'm sure you'll hear from me in the future, love the site.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe start sooner next time, though.
 
Nick Harms
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Maybe start sooner next time, though.

I had the bulk of the problem done friday, but my teacher was out of town, so she couldn't help me, so I finally found this site to help me out, all I had to do was add the quotes and the + sign and I was done.
It's not like I was procrastinating. :D We usually get stuff like this we only have 24-48 hours to finish.
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic