Sharing some quick hacking in Java to assist newbie to Java language