Adv

2/03/2015

Java Puzzle 9: Tweet

Short but challenging, a puzzle that fits in a tweet, exploring the power a superclass has over its subclass: Java puzzle, write A to win: class B extends A{B(Long i){new B(i/Long.compare(i,i));System.out.println("Win");}} http://t.co/dabnwJIlnP — Wouter Coekaerts (@WouterCoekaerts) February 2, 2015 Instructions: Copy-paste that code unchanged into B.java Write anything you want in A.java. Execute it with [...]



from Wouter Coekaerts http://wouter.coekaerts.be/2015/puzzle-tweet?utm_source=rss&utm_medium=rss&utm_campaign=puzzle-tweet

via IFTTT

沒有留言: