utter newbie
I'm an utter newbie at java and need to enhance a program at work. What I'm trying to do is put and int into a cell of an array defined as a String.
(code snippets...)
String[] results = new String[7];
int BookFlag = 0;
(then I use BookFlag as a counter)
Eventually I try...
results[6] = toString(BookFlag);
Um, isn't that what toString is for?
Does anyone have a suggestion on how to get an int shoved into a string array element?
(code snippets...)
String[] results = new String[7];
int BookFlag = 0;
(then I use BookFlag as a counter)
Eventually I try...
results[6] = toString(BookFlag);
Only to have the compiler tell me
"toString() in java.lang.Object cannot be applies to (int)"
results[6] = toString(BookFlag);
^
Um, isn't that what toString is for?
Does anyone have a suggestion on how to get an int shoved into a string array element?
