Create hasTwoConsecutive.java