Very Simple Java example helpful for beginners