Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #2000329 // fromLines (function)

New Tinybrain snippet

1  
  public static String fromLines(List<String> lines) {
2  
    StringBuilder buf = new StringBuilder();
3  
    for (String line : lines) {
4  
      buf.append(line).append('\n');
5  
    }
6  
    return buf.toString();
7  
  }

download  show line numbers   

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: 628 / 2003
Referenced in: [show references]