Adding Java Sample Code for all java lovers