01: import java.awt.Rectangle; 
02: 
03: public class MoveTester
04: {
05:    public static void main(String[] args)
06:    {
07:       Rectangle box = new Rectangle(5, 10, 20, 30);
08: 
09:       // Move the rectangle
10:       box.translate(15, 25);
11: 
12:       // Print information about the moved rectangle
13:       System.out.println("After moving, the top-left corner is:"); 
14:       System.out.println(box.getX()); 
15:       System.out.println(box.getY()); 
16:    }
17: }