As you gain more experience in being a developer you most likely get exposed to more code written by other people. Therefore I will start this series of blog posts about “Fun code”. I call it fun because it’s a bit weird and quirky but it works. This is the first entry and contains more words than most of the posts in this series probably will do. Some of these posts will likely contain a couple of lines of code and not just the one.
Without further ado, let me present you with the first funny.
Object someObject = map.get("someKey"); Long.valueOf(someObject.toString()).longValue()