I have a string array that populates dynamically .... I would like to run this function:
String[] name = request.getParameterValues("name");
myString = name.substring(0, name.length() - 2);
Now I know that this will not work, because the substring and length methods are not used for the whole array. Since I do not know how many elements will be in this array in any given period of time, do I still need to run the substring / length function for each element in this array?
source
share