I'm working on an application, and I want to pass the parameters int x, int y, int width, int height to a method (in a class other than main) to draw a square using those parameters. I have the method public void draw( Graphics g ) and I want to add those parameters (int x, int y, int width, int height) to the method, how would I do this? I tried making public void draw(Graphics g, int x, int y, int width, int height), but it didn't work.

