Search:

Type: Posts; User: Midlsk

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    715

    Re: Guess the number using class

    I can't change the logic for methods or constructor. The teacher want it this way. He gave us the methods template. We are not allowed to add or change any method. I was thinking I am not using...
  2. Replies
    7
    Views
    715

    Re: Guess the number using class

    So the user wins when he enters the number 37. I can't use the variable in the main class to compare it since it's private and I can't change that. So I only can use a method.
  3. Replies
    7
    Views
    715

    Re: Guess the number using class

    I know the break statement will break the loop. I am struggling with the condition for the if statement.
    If I put if (guess.isOver() == false) then the break statement, it will break the loop in the...
  4. Replies
    7
    Views
    715

    Guess the number using class

    Hi, I am stuck in Guess the number java program. I have a class template I have to use with all the methods without adding any method. I completed the program it runs but I can't get it to stop if...
Results 1 to 4 of 4