### Question:
CommonUtil { public static List<String> removeStringFromItems(List<String> list, String toRemove) { List<String> r = new ArrayList<>(); if (list != null) { for (String item : list) { if (item != null) { r.add(item.replace(toRemove, "")); } } } return r; } private  CommonUtil(); static boolean isEmpty(List list); static boolean isBlank(String str); static String sanitize(String v); static String DateToDayString(Date date); static Date dayToDate(String day); static String convertToString(List<String> list); static Map convertToMap(Object object); static List<String> removeStringFromItems(List<String> list, String toRemove); static Integer determinePriceCatForCPM(double price); static Integer determinePriceCatForCPC(double price); static Integer determinePriceCatForCPD(double price); static Integer determinePriceCatForCPT(double price); static Integer determinePriceCat(double price, TargetingChannel.PriceModel priceModel); static String removeEscapingCharacters(String str); static boolean equalNumbers(double d1, double d2);  }### Answer:
@Test public void removeStringFromItems() { List<String> list = new ArrayList(); list.add("abc"); list.add("123"); list.add("987654321"); list.add("qwer"); list.add("asdf"); list.add("ZXCV"); String rmv = "asdf"; List<String> exp = new ArrayList(); exp.add("abc"); exp.add("123"); exp.add("987654321"); exp.add("qwer"); exp.add(""); exp.add("ZXCV"); assertEquals(exp, CommonUtil.removeStringFromItems(list, rmv)); list.add("++++++"); exp.add("++++++"); assertEquals(exp, CommonUtil.removeStringFromItems(list, rmv)); }