Correcting the paint method

Report a typo

There is a line missing from the beginning of the following paint method. What would be required in order to make the paint method function correctly?

public void paint(Graphics g) {
    __________________
    g.drawRect(rectX, rectY, 50, 50);
}
Enter a short text
___

Create a free account to access the full topic