Originally posted by Rick Beaver:
Both the same problem - cast your Object to a String by placing the cast (String) in front of it
should be
I am assuming that the reference you are giving to the WriteString is, in fact, a Strnig object of course - if it is a different type then this will not work.
thanks for ur reply~~~yes~~~i make the 1st one correct, but cant do it with the 2nd one:
the wrong code is:
"String name = names.get(i);"
how to change the type of it?