Skip to main content

Timeline for Quoting Big Brother

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Nov 18, 2016 at 10:18 comment added Kevin Cruijssen I know it's been more than 2 years, but you can golf it by printing just once with a ternary if and since you talked about Java 8 in the comment above, you can also replace class with interface and remove the public before the main-method: interface B{static void main(String[]a){String b="Under the spreading chestnut tree",c="sold ",d="you ",e="and ",f="me.\nT",g="here lie ",h=".\n",i=" IS ";System.out.print(Math.random()>.5?b+"\nI "+c+d+e+d+c+f+g+"they, "+e+g+"we\n"+b+h:"WAR"+i+"PEACE"+h+"FREEDOM"+i+"SLAVERY"+h+"IGNORANCE"+i+"STRENGTH"+h);}} (308 bytes)
Aug 6, 2014 at 12:38 comment added Fabinout Java 6 is the price to pay for golfing in Java 8)
Aug 6, 2014 at 12:07 comment added CoolWilly Unfortunately, that trick doesn't work in Java 8. Guess I should have specified that :)
Aug 6, 2014 at 11:36 comment added Fabinout Static block *310 CHAR *: class B{static{String b="Under the spreading chestnut tree",c="sold ",d="you ",e="and ",f="me.\nT",g="here lie ",h=".\n",i=" IS ";if(Math.random()>.5)System.out.print(b+"\nI "+c+d+e+d+c+f+g+"they, "+e+g+"we\n"+b+h);else System.out.print("WAR"+i+"PEACE"+h+"FREEDOM"+i+"SLAVERY"+h+"IGNORANCE"+i+"STRENGTH"+h);}}
Aug 6, 2014 at 7:56 comment added Fabinout use static block instead of a main declaration
Aug 6, 2014 at 7:11 comment added CoolWilly @Fabinout I've tried a few tricks, but they didn't help. (java.io.PrintStream p=System.out, added 15 bytes to total, static<T>void p(T o){System.out.print(o);}, added 12). Any other suggestions?
Aug 5, 2014 at 14:40 comment added CoolWilly Thanks for the link! Gonna search for something useful tomorrow.
Aug 5, 2014 at 14:29 comment added Fabinout Yes you can codegolf.stackexchange.com/questions/6671/….
Aug 5, 2014 at 13:59 history answered CoolWilly CC BY-SA 3.0