import java.awt.geom.Point2D; class Point2DTest1{ public static void main(String args[]){ Point2D.Double point = new Point2D.Double(); point.setLocation(10.0d, 10.0d); System.out.println("(x, y)=(" + point.x + "," + point.y + ")"); } }