Timeline for answer to "Hello, World!" by Geobits
Current License: CC BY-SA 4.0
Post Revisions
21 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Dec 28, 2022 at 1:26 | history | suggested | CommunityBot | CC BY-SA 4.0 |
Add TIO link
|
| Dec 28, 2022 at 1:19 | review | Suggested edits | |||
| S Dec 28, 2022 at 1:26 | |||||
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
| Sep 20, 2017 at 7:48 | comment | added | Olivier Grégoire | @StevenVascellaro ... which in turn is beaten by my answer with -14 bytes. | |
| Sep 14, 2017 at 16:07 | comment | added | Stevoisiak | Beaten by TheNumberOne's answer with -3 bytes. | |
| Oct 13, 2016 at 5:35 | comment | added | Sudara |
U may be able to use interface than a class in Java 8
|
|
| Apr 7, 2016 at 9:09 | comment | added | Martin Ender |
User OptiFine suggested saving 3 bytes by using an interface and ditching the public specifier. I've rejected the edit following policy but since they can't comment, I thought I'd let you know so you can use it if you like.
|
|
| Apr 7, 2016 at 8:51 | review | Suggested edits | |||
| Apr 7, 2016 at 9:08 | |||||
| Jan 25, 2016 at 15:15 | review | Suggested edits | |||
| Jan 25, 2016 at 15:22 | |||||
| Sep 4, 2015 at 17:04 | comment | added | caseif |
@ThomasEding Declaring it as an enum would require a semicolon at the start of the class body, since it's required to start with type declarations. It would still come out to 79 bytes.
|
|
| Sep 2, 2015 at 1:50 | comment | added | TheDoctor | @Geobits That's why I didn't post it as an answer. | |
| Sep 2, 2015 at 0:41 | comment | added | Geobits | @TheDoctor From what I've seen, Processing is usually seen as a separate language here. You should post it as an answer, or at least ask for clarification from the OP. | |
| Sep 1, 2015 at 23:48 | comment | added | TheDoctor |
Processing (also java): print("Hello, World!");
|
|
| Sep 1, 2015 at 13:34 | comment | added | Geobits | @Luminous Ah, it might have worked for 1.5. I'm not going to install it to find out, though, but stick to something released in the last 10 years. If I never see Java 5 again it'll be a nice life :) | |
| Sep 1, 2015 at 13:29 | comment | added | Luminous | I know I've recently seen an example of using an enum to bypass the main call somewhere around here. Only worked for Java 1.5 though. | |
| Aug 29, 2015 at 15:57 | comment | added | Geobits | @ThomasEding What compiler does that actually work on? I've tried this tip on several, and have never been able to save bytes with it. | |
| Aug 29, 2015 at 7:41 | comment | added | Thomas Eding |
Use enum instead of class.
|
|
| Aug 28, 2015 at 16:19 | comment | added | Geobits | Ah, right. I was thinking there was something like that, so didn't post the actual code. Didn't have version <7 at hand to test, though. | |
| Aug 28, 2015 at 16:17 | comment | added | aditsu quit because SE is EVIL | The static block trick resulted in something being written to stderr, which is not acceptable here. | |
| Aug 28, 2015 at 13:47 | history | edited | mbomb007 | CC BY-SA 3.0 |
added 32 characters in body
|
| Aug 28, 2015 at 12:50 | history | answered | Geobits | CC BY-SA 3.0 |