Libraryless. Click here for Pure Java version (963L/7K/22K).
!636 !snipcom String orig = s; if (s.indexOf("main {") < 0) { String prelude = "!636\n" + "!standard functions\n" + "\n" + "main {\n" + " static Object androidContext;\n" + " static String programID;\n" + "\n" + " psvm {\n"; String postlude = "\n}}"; s = prelude + s + postlude; } 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
2 comment(s) hidden. show
| 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: | 1614 / 2061 |
| Referenced in: | [show references] |