Search:

Type: Posts; User: andbin

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,084

    Re: scanner questions

    Yes, it's also wrong about the point where you do calculations.

    1) Initialize double variables to 0.
    2) For each input, use nextLine() and assign to a String variable. If and only if the string...
  2. Replies
    6
    Views
    1,084

    Re: scanner questions

    It's sufficient the javadoc parseDouble
  3. Replies
    6
    Views
    1,084

    Re: scanner questions

    Use nextLine(), if the line is "empty" it means the value is skipped. If non-empty, convert to double using Double.parseDouble(String) method.
Results 1 to 3 of 3