Why doesn’t this code output “45, 67”?
import java.awt.geom.Ellipse2D;
public class BoundsTest {
public static void main(String[] args) {
Ellipse2D e = new Ellipse2D.Float(0, 0, 20, 20);
e.getBounds().setLocation(45, 67);
System.out.println(e.getBounds().x + ", " + e.getBounds().y);
}
}