Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StringBuilder sb = new StringBuilder();
- for (String role : roles) {
- sb.append(role).append(":\n");
- for (int i = 0; i < textLines.length; i++) {
- if (textLines[i].startsWith(role + ":")) {
- sb.append((i + 1)).append(")").append(textLines[i].substring(role.length() + 1)).append("\n");
- }
- }
- sb.append("\n");
- }
- return sb.toString();
Add Comment
Please, Sign In to add comment