Search:

Type: Posts; User: pbrockway2

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,209

    Re: Simple loop problem

    You're welcome.
  2. Replies
    7
    Views
    1,209

    Re: Simple loop problem

    Just little things: (1) "boolean" and "Boolean" are different types (2) "=" and "==" are different operators and



    (3) What the compiler is getting at is that numberEntered is variable that...
  3. Replies
    7
    Views
    1,209

    Re: Simple loop problem

    As I suggested, you set finished by looking at the value of numberEntered. Almost certainly an if statement will be involved: if numberEntered has certain value you can set finished to true, and the...
  4. Replies
    7
    Views
    1,209

    Re: Simple loop problem

    You don't say what is supposed to happen if the user enters a number 1->12. Should it repeat or not?

    You could use a while or do loop:



    public static void main(String[] args) {
    Months...
Results 1 to 4 of 4