[Solved] cannot find symbol : class java.awt.graphics [duplicate]


drawString is a method and not a variable. So you need to pass the parameters to method instead of assigning them. You need to change this:

objG.drawString="strString 1,202,42";

to:

objG.drawString(strString1,202,42);

7

solved cannot find symbol : class java.awt.graphics [duplicate]