public static String addFunction(String s, String fID) throws IOException { int i = s.lastIndexOf('}'); String function = loadSnippet(fID); return s.substring(0, i) + "\n" + function +"\n" + s.substring(i); }
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
3 comment(s) hidden. show
Snippet ID: | #2000347 |
Snippet name: | addFunction |
Eternal ID of this version: | #2000347/1 |
Text MD5: | a4efcbfd905165b8a0e4b50de521f2fc |
Author: | stefan |
Category: | javax |
Type: | New Tinybrain snippet |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-05-11 17:55:20 |
Source code size: | 228 bytes / 5 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 915 / 131 |
Referenced in: | [show references] |