static String repeat(char c, int n) { char[] chars = new char[n]; for (int i = 0; i < n; i++) chars[i] = c; return new String(chars); }
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: | 559 / 136 |
Referenced in: | [show references] |