code: public boolean isClosed() {
  		if (isEmpty()) {
  			return false;
  		}
  		if (getNumPoints() == 1) {
  			return false;
  		}
  		Coordinate[] coordinates = getCoordinates();
  		return coordinates[0].equals(coordinates[coordinates.length - 1]);
  	}
docs: Checks to see if the last coordinate equals the first. Should always be the case!