Libraryless. Click here for Pure Java version (72L/1K/4K).
1 | !592 // auto-import |
2 | !1000265 // standard function adder |
3 | |
4 | public class main { |
5 | static String prelude = |
6 | "public class main {\n" + |
7 | " public static void main(String[] args) throws Exception {\n" + |
8 | " String s = loadMainJava();\n"; |
9 | static String postlude = "\n" + |
10 | " saveMainJava(s);\n" + |
11 | " }\n" + |
12 | "}\n"; |
13 | |
14 | public static void main(String[] args) throws IOException { |
15 | String code = loadTextFile("input/main.java", null); |
16 | if (code == null) |
17 | throw new RuntimeException("Nothing to do (no input/main.java)"); |
18 | saveTextFile("output/main.java", prelude + code + postlude); |
19 | } |
20 | } |
Began life as a copy of #609
download show line numbers debug dex old transpilations
Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, kmhbujppghqa, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date |
---|---|---|---|
221 | #1000604 (pitcher) | 2015-08-18 00:51:38 | |
207 | #1000610 (pitcher) | 2015-08-18 00:51:05 |
Snippet ID: | #1000347 |
Snippet name: | translatorMainAdder in JavaX |
Eternal ID of this version: | #1000347/1 |
Text MD5: | cb8aae808aae45240bf1411453debba5 |
Transpilation MD5: | 6efc4e9db57f0dfaa5c39b7cd9a538b3 |
Author: | stefan |
Category: | |
Type: | JavaX translator |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-07-31 00:10:20 |
Source code size: | 636 bytes / 20 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 943 / 1219 |
Referenced in: | [show references] |