title: Computing area with x and y coordinates, How do I break set of numbers in x and y?
body: <p>This is what I should get.<br/>
  Sample Output:</p>
  
  <pre class="lang-none prettyprint-override"><code>Please enter the coordinates in a clockwise order.
      Enter the GPS coordinates for the 1st city: 35.2270869 -80.8431267
      Enter the GPS coordinates for the 2nd city: 32.0835407 -81.0998342
      Enter the GPS coordinates for the 3rd city: 28.5383355 -81.3792365
      Enter the GPS coordinates for the 4th city: 33.7489954 -84.3879824
      The area is: 117863.342
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>import java.util.Scanner;
  
  public class problem {
      public static void main(String[] args) {
  
          Scanner input = new Scanner(System.in);
  
          System.out.println("Please enter the coordinates in a clowise order");
          System.out.println("Enter the GPS coordinates for the 1st city: ");
          double coordinateOne= input.nextInt();
  
          System.out.println("Enter the GPS coordinates for the 1st city: ");
          double coordinateTwo= input.nextInt();
  
          System.out.println("Enter the GPS coordinates for the 1st city: ");
          double coordinateThree= input.nextInt();
  
          System.out.println("Enter the GPS coordinates for the 1st city: ");
          double coordinateFour= input.nextInt();
  
          double earthRadius= 6371.01;
  
          //Get distance
  
  
          //distance=(radius)arccos(sin(x1)sin(x2)+cos(x1)cos(x2)cos( y1−y2))
          double distance= (earthRadius)*Math.acos(Math.sin(coordinateOne)*Math.sin(coordinateTwo))
                  + Math.cos(coordinateOne)*Math.cos(coordinateTwo);
  
  //      System.out.println("The area is: "+distance);
  
  
  
      }
  }
  </code></pre>
  
  <p>I am having trouble with for example if I enter <code>35.2270869 -80.8431267</code>, how do I separate them to <code>x</code> and <code>y</code>?</p>
  
  <p>I must use the phrase:</p>
  
  <pre class="lang-none prettyprint-override"><code>Enter the GPS coordinates for the # city.
  </code></pre>
  
  <p>I need to separate it in order to pass them (<code>x</code> and <code>y</code>) to the formula.</p>