How to convert an arrayObject into String Object?
Thank you..
Printable View
How to convert an arrayObject into String Object?
Thank you..
what do you mean by arrayObject?
probably this will work ?
string = (String) arrayObject;
You mean an object in an Array?
If so, as hey pointed out, cast the value to String. (Note: All values in Array and other collection classes are stored as objects. So when you retrieve them you need to cast them back to their original type)
Hope this helps
thank you for the help i am still trying to work on it .
Hope this helps
Object[] object_array = {xxx, xxx};
String[] string_array = new String[object_array.length];
for (int i = 0 ; i < object_array.length ; i++)
string_array[i] = object_array[i].toString();