I have the following variables: Image avatar;
and URL url;
In the constructor, I set:
this.url = new URL("http://www.robottiger.com/user.PNG");
and
this.avatar = ImageIO.read(url);
Then in..
public void paint (Graphics g)
..is it correct to use the following?
g.drawImage(avatar, 20, 410, null);
Or should the null
be this
instead?