import java.awt.Point; public class MainClass { public static Point scale(int x, int y) { return new Point((int) (x / 2), (int) (y / 2)); } public static void main(String[] argv) throws Exception { double px = 10.02; double py = 20.34; Point thePoint = scale(px, py); } }