public static String[] resizeArray(String[] array, int newSize){
if(newSize<array.length) return array;
String newArray[] = new String[newSize];
for(int i=0; i<array.length; i++){
newArray[i] = array[i];
}
return newArray;
}
myArray = resizeArray(myArray, 30);