Search:

Type: Posts; User: daitobu

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,499

    Re: boolean for increment method

    thank you very much :).
  2. Replies
    6
    Views
    1,499

    Re: boolean for increment method

    The problem here is there not actually an assignment. He just gave everyone the skeleton of the program, and expect the result. So I don't know what really to do :(. Well if there a better way to...
  3. Replies
    6
    Views
    1,499

    Re: boolean for increment method

    This is what i came up with. It run but it doesn't say anything if it false.


    public boolean increment() {
    if (count < maxValue)
    {
    count++;
    return true;
    ...
  4. Replies
    6
    Views
    1,499

    boolean for increment method

    Hello my original attempted was to make increment method in the class. But my teacher want it to be in boolean instead of void



    public void increment() {
    if (count < maxValue)
    ...
Results 1 to 4 of 4