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

20
LINES

< > BotCompany Repo | #1000610 // Add main and psvm (edit suggestor)

JavaX (snippet commenter) [tags: use-pretranspiled]

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;

Author comment

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

Comments [hide]

ID Author/Program Comment Date
122 #1000604 (pitcher) 2015-08-18 00:46:52
115 #1000610 (pitcher) 2015-08-18 00:46:37

add comment

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: 1118 / 1468
Referenced in: [show references]