public static String fromLines(List<String> lines) {
StringBuilder buf = new StringBuilder();
for (String line : lines) {
buf.append(line).append('\n');
}
return buf.toString();
}Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #2000329 |
| Snippet name: | fromLines (function) |
| Eternal ID of this version: | #2000329/1 |
| Text MD5: | dc26d3367c205488a845d661f1d51a5d |
| Author: | stefan |
| Category: | javac |
| Type: | New Tinybrain snippet |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-04-30 16:47:26 |
| Source code size: | 211 bytes / 7 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 839 / 2054 |
| Referenced in: | #698 - Standard Function Adder (new, developing) #1002398 - fromLines (function) - appends \n after last line too #3000382 - Answer for ferdie (>> t = 1, f = 0) |