1public class Point {
2private double x;
3private double y;
4
5public Point(double x, double y){
6 this.x=x;
7 this.y=y;
8}public String toString(){
9 return "("+ this.x+","+this.y+")";
10}
11public static void main(String[] args){
12 Point point= new Point(3,2);
13 System.out.println(point.tostring());
14 }
15}