Libraryless. Click here for Pure Java version (963L/7K/22K).
1 | !636 |
2 | !snipcom |
3 | |
4 | String orig = s; |
5 | |
6 | if (s.indexOf("main {") < 0) { |
7 | String prelude = |
8 | "!636\n" + |
9 | "!standard functions\n" + |
10 | "\n" + |
11 | "main {\n" + |
12 | " static Object androidContext;\n" + |
13 | " static String programID;\n" + |
14 | "\n" + |
15 | " psvm {\n"; |
16 | String postlude = "\n}}"; |
17 | s = prelude + s + postlude; |
18 | } |
19 | |
20 | if (orig.equals(s)) s = ""; else s = "Edit suggestion:\n" + s; |
Began life as a copy of #1000604
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date |
---|---|---|---|
122 | #1000604 (pitcher) | 2015-08-18 00:46:52 | |
115 | #1000610 (pitcher) | 2015-08-18 00:46:37 |
Snippet ID: | #1000610 |
Snippet name: | Add main and psvm (edit suggestor) |
Eternal ID of this version: | #1000610/1 |
Text MD5: | 94129f17dace0e7fd7a287caa2a90eca |
Transpilation MD5: | a5e5369d7c16ec17dbfbbb29d89dbe43 |
Author: | stefan |
Category: | javax |
Type: | JavaX (snippet commenter) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-25 18:10:04 |
Source code size: | 406 bytes / 20 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 1117 / 1468 |
Referenced in: | [show references] |