Share this post

Link to post

Share on other sites

NetBean. It shows highlight error in do and while line. I checked the method has been correct, but it won't do loop. all method and compare are inside, I wrote code after parameter. Java source said while accept != as not equal. isn't that strange?

I know what method is. I have been learning about OOP already, I am moving into intermediate level now.

In object-oriented programming objects are composed of properties and of methods. Properties contain information about the object and methods are actions that the object can do.

In your code the GameGuess object has a Send () method. Your do...while loop is not inside a method, but in Java, all logic has to be inside methods. If you have changed your code, please post your new code.