77日目-Get The Middle Character



--------------------------------------------🤞 My Solution -----------------------------------------
class Kata {
  public static String getMiddle(String word) {
    if(word.length() % 2 != 0) {
	word = Character.toString(word.charAt(word.length()/2));
	}
	else {
	word = word.substring(word.length()/2 - 1, word.length()/2 + 1);
	}
    return word;
  }
}
ワクチンはとてもかわいがって、私の腕はどこへ行って、私はコードしなければなりません...