SpreadsheetUtils { public static String getColumnLabel(int column) { StringBuilder result = new StringBuilder(); while (column >= 0) { result.insert(0, (char) ((char) (column % 26) + 'A')); column = (column / 26) - 1; } return result.toString(); }  static int getColumnIndex(String column); static String getColumnLabel(int column); static String getPortName(String columnLabel, JsonNode jsonNode); static String getPortName(int columnIndex, JsonNode jsonNode); static Range getRange(JsonNode jsonNode);  }
@Test public void testGetColumnLabel() { assertEquals("A", SpreadsheetUtils.getColumnLabel(0)); assertEquals("E", SpreadsheetUtils.getColumnLabel(4)); assertEquals("Z", SpreadsheetUtils.getColumnLabel(25)); assertEquals("AA", SpreadsheetUtils.getColumnLabel(26)); assertEquals("ZAFZ", SpreadsheetUtils.getColumnLabel(457833)); }