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

6
LINES

< > BotCompany Repo | #2000505 // repeat

New Tinybrain snippet [tags: archive]

1  
  static String repeat(char c, int n) {
2  
    char[] chars = new char[n];
3  
    for (int i = 0; i < n; i++)
4  
      chars[i] = c;
5  
    return new String(chars);
6  
  }

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: #2000505
Snippet name: repeat
Eternal ID of this version: #2000505/1
Text MD5: edd4b0b4add817739be629ac56f04249
Author: stefan
Category:
Type: New Tinybrain snippet
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-09 04:45:27
Source code size: 164 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 561 / 137
Referenced in: [show references]