Create isConsecutive.java