java a2 files added
added question 4 for java a2