Search:

Type: Posts; User: CommisarDave

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,816

    Re: Boolean Input Question.

    Hi,

    Thanks I will try the scanner class.

    David
  2. Replies
    6
    Views
    1,816

    Re: Boolean Input Question.

    Hi,

    As I said the program dosen't allow me to enter a thing it just stops there and the error message comes up. I'm sorry I don't know what the method's doc is.

    Thanks David
  3. Replies
    6
    Views
    1,816

    Re: Boolean Input Question.

    Hi,

    The error message is:

    Exception in thread "main" java.lang.IllegalArgumentException:

    Illegal boolean input value.
    Expecting one of: true, false, t, f, yes, no, y, n, 0, or 1
    at...
  4. Replies
    6
    Views
    1,816

    Boolean Input Question.

    Hi, This is a really simple question but I've been stuck on this for a while now. Does this line of code read a boolean input from the console?

    userInput = TextIO.getlnBoolean();

    I have looked...
Results 1 to 4 of 4