
-----------------------------------
nelsonkkyy
Sun Oct 31, 2010 12:03 am

Need help with the input
-----------------------------------
This is the original one:

class TestPoint
{
    public static void main (String

class Point
{
    int x;
    int y;
    void setx (int x)
    {
        this.x = x;
    }


    void sety (int y)
    {
        this.y = y;
    }


    int getx ()
    {
        return this.x;
    }


    int gety ()
    {
        return this.y;
    }


    void add (Point p)
    {
        x = x + p.x;
        y = y + p.y;
    }


    void subtract (Point p)
    {
        x = x - p.x;
        y = y - p.y;
    }

    
    
    double dist (Point p)
    {
        return Math.sqrt ((Math.pow ((x - p.x), 2) + Math.pow ((y - p.y), 2)));
    }
   


}



Im trying to make it as an input way but i cant.


import java.io.*;
 


class TestPoint
{
    public static void main (String

-----------------------------------
S_Grimm
Tue Nov 02, 2010 1:53 pm

Re: Need help with the input
-----------------------------------


        BufferedReader stdin = new BufferedReader (
                new InputStreamReader (System.in));
        for (int i = 1 ; i 