Create hasMidpoint.java