• Is this the correct syntax to use it in class Graphics?

    Almos :) The first argument of apply and call is the this argument. It doesn't matter for Math.max because max doesn't care about knowing it's called via Math, but drawString needs to know which Graphics instance it's called on.

    If you do g.drawString.apply(g,p); you should be fine


Avatar for Gordon @Gordon started