add my first batch of java codes