File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing my first program.

 
Justin Wetzel
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47274
52
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic