added first four java programs