I normally work with asp.net, but I have been drafted to do some work on a java legacy app. I want to copy from a vector to an array. This is my code:
String[] myOutput = new String[myVector.size()];
myOutput = myVector.toArray(String[] myOutput);
The compiler says ".class expected" on the second line. Please advise.
String[] myOutput = new String[myVector.size()];
myOutput = myVector.toArray(String[] myOutput);
The compiler says ".class expected" on the second line. Please advise.