|
Re: how..?
|
Posted: Oct 24, 2002 5:27 PM
|
|
Don't go in details and whenever you need a string out of number just write: your_nuber + ""
For example, int i = 289; String str = i + "" ; Now your i value 289 is in String str. In drawString method g.drawString ( i + "", your_other_parameters ) ; Now drawString will draw the value 289.
I am just giving you examples of converting a number to string and any details on any methods or anything else... To be a purist, you can use String.valueOf ( i ) to get the string out of i.
Thanks Kishori
|
|