A beginners guide to java