05-12-2011 02:20 AM
i write some code for get value from vector and store in String array,
but when i convert it into String it show me classcastException.
so please help me to solve it.
String elem=new String[data7.size()];
while(f < data7.size())
note: here data7 is vector.
Solved! Go to Solution.
05-12-2011 02:52 AM
05-12-2011 06:00 AM
"but i store string value in vector."
Clearly not, becuase if you did, you would not get a cast exception! Assuming the exception is thrown by this line:
This sort of problem is usally pretty easy to spot using the debugger. Have you tried that?
Which line throws the exception.
05-12-2011 07:14 AM
i debugg it before post it on forum and i know that below line show me error.
if i write below code it works but show different ouput.
and also this,
05-12-2011 07:19 AM
05-13-2011 12:59 AM
PersistentStore - destroyPersistentObject(long key)
if i write above code ,it deletes key.
If i delete this key then all data stored in persitent key is deleted.
But i want to delete at time only one data not all.
05-13-2011 03:37 AM