Post History
Booleans are replaceable Java, like Python, has pretty convenient yet nasty ways to golfing down code through comparison operators. Especially this case, this time with booleans. You can compare i...
Answer
#1: Initial revision
# Booleans are replaceable Java, like Python, has pretty convenient yet nasty ways to golfing down code through comparison operators. Especially this case, this time with booleans. You can compare `int`s and it will result to either `false` or `true`, which helps you break 1 and 2 bytes respectively. <!-- language-all: lang-java --> <pre><code>static void main(String[]a){ 	System.out.println(1<0); 	System.out.println(1>0); } </code></pre> [Try it online!][TIO-kuryw976] [Java (JDK)]: http://jdk.java.net/ [TIO-kuryw976]: https://tio.run/##y0osS9TNSsn@n5lXklqUlpicquBb/b@4JLEkM1mhLD8zRSE3MTNPI7ikKDMvPTo2UbOaizO4srgkNVcvv7RErwAoXJKTp2FoY6BpjV3GDiRT@7/2PwA "Java (JDK) – Try It Online"