How to remove specific value from string array in java?
You could use the ArrayUtils API to remove it.
array = ArrayUtils.removeElement(array, element);
I would do it as follows:
String[] str_array = {"item1","item2","item3"};
List<String> list = new ArrayList<String>(Arrays.asList(str_array));
list.remove("item2");
str_array = list.toArray(new String[0]);