Use the grow() method to modify a rectangle to be twice as large.
I’m not sure if this is correct so if it is wrong please explain and feel free to correct me.
Kim.grow(5,8);
System.out.println(Kim);
Does this mean that my rectangle will now be twice as big if I code it like this or am I missing something?
grow(int 8, int v)….what would v be?..Im guessing h is the height
According to the Javadocs, the
grow(int h, int v)method re-sizes your rectangle such that:I’m assuming that Kim is an instance of java.awt.Rectangle of dimensions (x, y)