aspose file tools*
The moose likes Beginning Java and the fly likes Writing my first program. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Writing my first program." Watch "Writing my first program." New topic
Author

Writing my first program.

Justin Wetzel
Greenhorn

Joined: Jan 20, 2013
Posts: 2
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

Joined: Jan 20, 2013
Posts: 2
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

Joined: Oct 13, 2005
Posts: 40052
    
  28
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
 
subject: Writing my first program.