Your's deeply - Why Arrays.deepEquals when we have Arrays.equals

While everybody would naturally accept the following lines of code on grounds of reference equality and value equality and that String and wrappers override the equals method, it takes some effort at first to accept the behavior of Arrays.equals and Arrays.deepEquals Object obj1=new Object(); Object obj2=new…

Architexa - A fine code reading tool

I love reading code. For two reasons : 1. If the code is bad, it is an awesome ego boost PLUS you get to foul mouth someone who has a good reputation for designing amazing things. 2. If the code is good, then you get to learn some new tricks and…

Filter lines in log file with ERROR

A couple of days ago, a friend of mine was interested to know how to filter a log file (in my case a log4j log file) for ERRORs alone. An hour of tricks sharing followed and here is the gist of the conversation that you will be interested in. Find…