I want a method to return two vectors to the calling function. Here is what I tried:
static Vector<String>[] method()
{
Vector<String>[] toret = new Vector<String>[2]; // GETTING ERROR HERE
for(...)
{
toret[0].add(...);
toret[1].add(...);
}
return toret;
}
public static void main()
{
Vector<String>[] obtained = method();
}
Need help to remove that error.