error Casting Object[] 2 String[] !!!!
Hi! i have a LinkedBlockingQueue and by it's method .to Array() i want to cast it's type to String[] (it's initial is Object[])
But i get a ClassCastException
Help?
That's my method basicly a wrapper
public String[] toArray()
{
String[] pool = (String[]) urlPool.toArray();
return pool;
}
and i 'copy' it like this
String[] uL = urlL.toArray();

