How to make coordinate of positive numbers in java
<pre><code>I have an input of 
-157,118
-170,12
-74,139
-144,42
-155,196
122,-88
-187,-143
156,-18
-67,126
44,-102
....
</code></pre>

<p>like this .I have to check each number in a file(where i have more inputs like these) and have to find which pair belongs to (+ve,+ve).plese anyone help me .I am able to read the numbers from file .I have done this..</p>

<pre><code>public class EulerGift {

public static void main(String[] args) {

    // List&lt;String&gt; coordinateList=new ArrayList&lt;String&gt;();
    File file = new File("D:/coordinate.txt");

    try {

        Scanner sc = new Scanner(file);

        while (sc.hasNext()) {

            String value = sc.next();

            String[] tokens = value.split(",");

            for (int i = 0; i &lt; tokens.length; i++) {

                    System.out.println("("+Integer.parseInt(tokens[i])+")");
                   // System.out.println(Integer.parseInt(tokens[i]));
            }
        }
    } catch (FileNotFoundException e) {
        System.err.format("File Not Found");
    }
}
}
</code></pre>
