I have this snippit
VB Code:
for (int i=1; i<=4; i++) { for (int j=1; j<=5; j++) { g.drawString( dSales[i][j], ((100 * j) + 20), ((15 * i) + 17) ); } }
its not working i get:
D:\jdk1.3.1\bin>javac DailySales.java
DailySales.java:70: cannot resolve symbol
symbol : method drawString (double,int,int)
location: class java.awt.Graphics
g.drawString( dSales[i][j], ((100 * j) + 20), ((
15 * i) + 17) );
^
1 error
Can I just not draw a double in with drawString? If not how can I convert to string from double?
P.S. The pointer (^) in the compiler is pointing to the dot between g and drawString!
THANKS
NOMAD!




Reply With Quote