Complete the getMiddle method that gets the middle character from a word if the word length is odd, or the middle character pair if it is even. For example, getMiddle("Java") returns "av". If the word is empty, return the empty string. If it is null, return null.