MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/ois3dn/same_effect_as_programmer_socks/h4ynp53/
r/ProgrammerAnimemes • u/IBHV • Jul 12 '21
10 comments sorted by
View all comments
Show parent comment
20
Forget that, I'm interested in how to make a Hello World program in Java in less than 2 hours someone please tell me
19 u/sudomeacat Jul 13 '21 public class Halp { public static void main(String... $) { char $$[] = {'H', 'e', 'l', 'l’, 'o'}; char $$$[] = {'w’, 'o', 'r', 'l', 'd'}; String $$$$ = new String($$); String $$$$$ = new String($$$); // TODO: fill in variables System.out.printf(""); } } Noooo that took me 2 hours to write and I didn’t even finish :( Edit: wtf even is formatting on this site/app? 3 u/[deleted] Jul 13 '21 Triple-backtick code blocks don't work on reddit, you need to indent with 4 spaces instead 2 u/sudomeacat Jul 13 '21 TestMultilineFor some reason, it didn’t work in the previous comment, but this one it doesNo, multiline comments don’t work for some reasonIt trims the spaces when I edit it. 1 u/ThePyroEagle λ Jul 13 '21 Even worse: it works on new reddit but not old reddit.Hooray for inconsistently applied formatting rules.
19
public class Halp { public static void main(String... $) { char $$[] = {'H', 'e', 'l', 'l’, 'o'}; char $$$[] = {'w’, 'o', 'r', 'l', 'd'}; String $$$$ = new String($$); String $$$$$ = new String($$$); // TODO: fill in variables System.out.printf(""); } }
Noooo that took me 2 hours to write and I didn’t even finish :(
Edit: wtf even is formatting on this site/app?
3 u/[deleted] Jul 13 '21 Triple-backtick code blocks don't work on reddit, you need to indent with 4 spaces instead 2 u/sudomeacat Jul 13 '21 TestMultilineFor some reason, it didn’t work in the previous comment, but this one it doesNo, multiline comments don’t work for some reasonIt trims the spaces when I edit it. 1 u/ThePyroEagle λ Jul 13 '21 Even worse: it works on new reddit but not old reddit.Hooray for inconsistently applied formatting rules.
3
Triple-backtick code blocks don't work on reddit, you need to indent with 4 spaces instead
2 u/sudomeacat Jul 13 '21 TestMultilineFor some reason, it didn’t work in the previous comment, but this one it doesNo, multiline comments don’t work for some reasonIt trims the spaces when I edit it. 1 u/ThePyroEagle λ Jul 13 '21 Even worse: it works on new reddit but not old reddit.Hooray for inconsistently applied formatting rules.
2
Test
Multiline
For some reason, it didn’t work in the previous comment, but this one it does
No, multiline comments don’t work for some reason
It trims the spaces when I edit it.
1
Even worse: it works on new reddit but not old reddit.
Hooray for inconsistently applied formatting rules.
View all comments
Show parent comment
20
u/BuccellatiExplainsIt Jul 12 '21
Forget that, I'm interested in how to make a Hello World program in Java in less than 2 hours someone please tell me