The Java Puzzlers is one of my favorite bed-side books at the moment. Kudos to Joshua Bloch and Neal Gafter for it.
Recently a colleague told me to write about the JDeveloper 10.1.3 Code Assist feature to solve the Elementary Java Puzzler (thank you Didier).
The Elementary Puzzler
This puzzler is a nice and simple one with a mean tiny detail. Here it is:public class Elementary {
public static void main(String[] args) {
System.out.println(12345 + 5432l);
}
}Elementary In JDeveloper 10.1.3
Let's see what JDeveloper has to say about it:
Oops, that tiny little lowercase L is hard to spot. To be fair, I also tried it with two other popular IDEs. The results speak for themselves.
Elementary In Eclipse 3.1.2

Elementary in Netbeans 5.0

Comments (1)
Wow :) A feature in JDeveloper I hadn't even noticed (despite the fact that it was probably implemented by the guy who I used to sit in the next cube to).
Nice to see us solidly beating the competition in at least one area ;)
Posted by Brian Duff | April 16, 2006 8:23 AM
Posted on April 16, 2006 08:23