Search:

Type: Posts; User: pbrockway2

Search: Search took 0.10 seconds.

  1. Replies
    17
    Views
    2,346

    Re: whats with the scanner?????

    Don't you mean



    String square = "square";


    The thing is you want to compare what the user enters with the string s-q-u-a-r-e, not with a variable square.

    -----
  2. Replies
    17
    Views
    2,346

    Re: whats with the scanner?????

    Step back from the code a little and ask yourself what you expect the user to enter as a response to "Firstly, input what shape you want to find the perimeter and area of."

    You have complete...
  3. Replies
    17
    Views
    2,346

    Re: whats with the scanner?????

    You will get an InputMismatchException at runtime when you ask the scanner for some particular type of input (like an int) but the scanner hits something that it simply can't interpret as that type...
Results 1 to 3 of 3