":", "a", "b", "c" -> a:b:c @param splitter the splitter that goes in between @param strings the strings @return the result
(String splitter, String... strings)
| 745 | * @return the result |
| 746 | */ |
| 747 | public static String split(String splitter, String... strings) { |
| 748 | StringBuilder b = new StringBuilder(); |
| 749 | |
| 750 | for (String i : strings) { |
| 751 | b.append(splitter); |
| 752 | b.append(i); |
| 753 | } |
| 754 | |
| 755 | return b.substring(splitter.length()); |
| 756 | } |
| 757 | |
| 758 | /** |
| 759 | * Calculate a fancy string representation of a file size. Adds a suffix of B, |
no test coverage detected