What is printed by the code fragment below?
Rectangle r = new Rectangle(10, 10);
int n = 4;
shrink(r);
shrink(n );
System.out.print(r.getWidth() + "" + r.getHeight() + "" + n);
public void shrink(Rectangle rec) {
int newWidth = (int) rec.getWidth()/2;
int newHeight = (int) rec.getHeight()/2;
rec.setSize(newWidth, newHeight);
}
public void shrink(int num) {
num = num / 2;
}
>>158709
552 without spaces.