Learning process of java through examples