Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    \$\begingroup\$ You have nnn in there... Otherwise, I thought duplicating System.out.print("") seemed verbose, so I played around with some String methods, and managed to save 3 more bytes. Try it online!. \$\endgroup\$ Commented Mar 19, 2018 at 17:39
  • 1
    \$\begingroup\$ Another option with the same length. \$\endgroup\$ Commented Mar 19, 2018 at 17:40
  • \$\begingroup\$ @ØrjanJohansen Thanks! And not sure how I missed that nnn... Also, managed to golf three more by changing String...e to String...f, so we can remove the two e (and one f) in the interface name. \$\endgroup\$ Commented Mar 19, 2018 at 17:45
  • 1
    \$\begingroup\$ Oh, replace can replace all those methods. Try it online! \$\endgroup\$ Commented Mar 19, 2018 at 18:00
  • 1
    \$\begingroup\$ Come to think of it, why not use replace for its intended purpose? Try it online! \$\endgroup\$ Commented Mar 19, 2018 at 18:19