Learning java from scracth