Search:

Type: Posts; User: curmudgeon

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,189

    Re: Scanner (death loop)

    Glad you've got it figured out!
  2. Replies
    7
    Views
    1,189

    Re: Scanner (death loop)

    No, there are no files involved in your code as you've posted it. There is an InputStream however supplied by System.in that is read by the Scanner, and perhaps this is what you meant.
  3. Replies
    7
    Views
    1,189

    Re: Scanner (death loop)

    I wouldn't expect the answer to be 36 unless you enter 12 in the console window since the answer will depend entirely on the value of i that you enter when the program runs and i alone.
  4. Replies
    7
    Views
    1,189

    Re: Scanner (death loop)

    I see a big problem with the quote characters you're using. Java will only recognize the basic quote symbol, ", for both opening and closing quotes, not the specific opening and closing quotes you...
Results 1 to 4 of 4