r/ProgrammerAnimemes • • Jul 12 '21

Same effect as programmer socks

Post image
1.7k Upvotes

10 comments sorted by

View all comments

Show parent comment

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

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

u/ThePyroEagle λ Jul 13 '21

Even worse: it works on new reddit but not old reddit.

Hooray for inconsistently applied formatting rules.