(String separator)
| 740 | |
| 741 | |
| 742 | public String join(String separator) { |
| 743 | if (count == 0) { |
| 744 | return ""; |
| 745 | } |
| 746 | StringBuilder sb = new StringBuilder(); |
| 747 | sb.append(data[0]); |
| 748 | for (int i = 1; i < count; i++) { |
| 749 | sb.append(separator); |
| 750 | sb.append(data[i]); |
| 751 | } |
| 752 | return sb.toString(); |
| 753 | } |
| 754 | |
| 755 | |
| 756 | public void print() { |
no test coverage detected