All codes creatred by reviewing java 6