Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    15
    Views
    4,098

    Re: Trouble with getX() and getY()

    The String class has a method that will split that String into two Strings: x and y in an array.
    Then you could use the Integer class to convert those two Strings into int values.
  2. Replies
    15
    Views
    4,098

    Re: Trouble with getX() and getY()

    They look like the names of methods.
    I usually think of commands as the name of an executable program that you want the OS to execute.
    Hence the term: command line
  3. Replies
    15
    Views
    4,098

    Re: Trouble with getX() and getY()

    The first change you should make with your code is to remove all of the static modifiers but the one needed on the main method. You are giving poor advice with this code.
  4. Replies
    15
    Views
    4,098

    Re: Trouble with getX() and getY()

    System.out.println("Enter the location (x, y) format: ");
    double location = zip.nextDouble();
    A double can only hold one value. For example: 1.23234. Not 3 and 4
    Add a println("loc=" +...
Results 1 to 4 of 4