import java.awt.Point; public class Scale { public static void main(String[] args) { int x= 4; int y= 3; int faktor= 2; Point p = new Point(x,y); skaliere(p, faktor); System.out.println(p.x + " " + p.y); } public static void skaliere(Point p, int faktor) { p.setLocation(p.x * faktor, p.y * faktor); } }