// インデント用空白(長さは最大行の長さの半分)作成
        final int maxLength = row[maxHeight - 1].length();
        StringBuffer space = new StringBuffer();
        for (int i = 0; i < maxLength / 2; i++) {
            space.append(" ");
        }

        // 表示
        for (int curHeight = 0; curHeight < maxHeight; curHeight++) {
            System.out.print(space.substring(row[curHeight].length() / 2));
            System.out.println(row[curHeight]);
        }
    }
}