public static String split (String vector){
String vector1 = "";
String vector2 = "";
final int SIZE = vector.length();
int firsthalf = 0;
int secondhalf = SIZE/2;
while (firsthalf< SIZE/2){
vector1+= vector.charAt(firsthalf);
firsthalf++;
}
while (secondhalf< SIZE){
vector2+= vector.charAt(secondhalf);
firsthalf++;
}
return vector1;
return vector2;
}
Hi so i know that this question might have been asked frequently by java noobs like myself but i dont understand why vector2 is out of reach as java error report calls it, and what can i do to return the vector2