code: public String[] removeFromStringArray(String[] strArray, String str) {
          String[] result = null;
          if (strArray != null && strArray.length > 0) {
              List<String> list = new ArrayList<String>();
              for (int i=0; i < strArray.length; i++) {
                  if (!strArray[i].equals(str)) {
                      list.add(strArray[i]);
                  }
              }
              int size = list.size();
              if (size > 0) {
                  result = list.toArray(new String[size]);
              }
          }
          return result;
      }
docs: Remove all occurrences of the given string from the given array. This
  will create a new array containing all elements of the given array
  except for those matching the given value.
  
  @param strArray The array of strings to remove from
  @param str The value to remove
  
  @return A new array containing the given array excluding the given string