• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Writing my first program.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I completed a program similar, and now that i'm writing this one i'm not sure how the issue/error arises or how to go about fixing it. Here it is.



Now the error I get is
IdealWeight.java:26: error: cannot find symbol
System.out.print = ("Please enter your height(feet:)");
^
symbol: variable print
location: variable out of type PrintStream
IdealWeight.java:29: error: cannot find symbol
System.out.print = ("Please enter your height(inches:)");

Any words of advice?
 
Justin Wetzel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the error. It was the unnecessary "=" signs. don't know how to delete the thread, but I tried to mark it as resolved.
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Justin Wetzel wrote:I found the error. . . . .

Well done finding that.

We do not delete threads unless there is something wrong with them.
How do you know it is resolved? How do you know there isn’t something else wrong with your code?
You ought to use the code button which makes the post look much better; I shall see if I can apply it to your post in retrospect.

And welcome to the Ranch
 
reply
    Bookmark Topic Watch Topic
  • New Topic