### Question:
Strings { public static String joinStrings(List<String> strings, boolean fixCase, char withChar) { if (strings == null || strings.size() == 0) { return ""; } StringBuilder result = null; for (String s : strings) { if (fixCase) { s = fixCase(s); } if (result == null) { result = new StringBuilder(s); } else { result.append(withChar); result.append(s); } } return result.toString(); }  static String fixCase(String s); static String joinStrings(List<String> strings, boolean fixCase, char withChar); static List<String> splitJavaIdentifier(String string);  }### Answer:
@Test public void testJoinStrings() { System.out.println("JoinStrings"); String[] cases = { "a", "a|b|c", "" }; String[] results = { "a", "a-b-c", "" }; for (int i = 0; i < cases.length; i++) { assertEquals(results[i], Strings.joinStrings( Arrays.asList(results[i].split("\\|")), false, '-')); } }