About 21,000,000 results
Open links in new tab
  1. java scan coordinates as (X, Y) format - Stack Overflow

    Feb 10, 2014 · How can I scan coordinates with (x, y) format? For example: (1, 3) (2, 4) (4, 1) (3, 2) What I've tried is this: String m = input.next (); String parts [] = m.split (","); String part1 = …

  2. java - store X and Y coordinates - Stack Overflow

    Jul 30, 2012 · Coords c = (Coords) o; return c.x == x && c.y == y; public Coords(int x, int y) { super(); this.x = x; this.y = y; public int hashCode() { return new Integer(x + "0" + y); public …

  3. java - How to enable coordinates of a point as a input - Stack …

    The syntax of a coordinate should be as follows: x, y. Pretty straight forward, right? // Position ships. Scanner scanner = new Scanner(System.in).next(); List<Point> ships = new …

  4. Java User Input (Scanner class) - W3Schools

    The Scanner class is used to get user input, and it is found in the java.util package. To use the Scanner class, create an object of the class and use any of the available methods found in the …

    Missing:

    • Coordinates

    Must include:

  5. Java program to read coordinate points and determine its quadrant

    Feb 28, 2022 · Given the values of coordinates, we have to read coordinate points and determine its quadrant. In this program, we will read X, Y coordinate points from the user and determine …

  6. Point (Java Platform SE 8 ) - Oracle

    A point representing a location in (x,y) coordinate space, specified in integer precision.

  7. Java Program: X and Y axis | BufferedReader - Blogger

    Write a program that prompts the user to input the x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the origin point, is …

  8. Check if a Point is on the Left or Right Side of a Line in Java

    Prompt the user to enter coordinates for the point to check and store them in point.x and point.y. Call the dirOfPoint method with the three point objects to calculate direction.

  9. java - How to prompt user to enter both x and y coordinates in a …

    May 26, 2023 · Yes you can do this in Java. You can prompt the user to enter in a string and then split the string to an array of strings and then parse it as you need. public static void …

  10. Make a Row of Coordinates (Array) - Learn Java Coding

    Everything You Have To Know About Java. The input are coordinates: 0,0 4,5 9,8 12,2 1,2 4,5 5,6. How to make a row? Sketch: PrintStream out; //We will use the print option to check …

  11. Some results have been removed
Refresh