Create Occurrences.java

Added exercise java