@Test public void zeroToGeorgianTest() { Assert.assertEquals("", GeorgianNumbering.toGeorgian(0)); }
public static String toGeorgian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { GeorgianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); }
GeorgianNumbering { public static String toGeorgian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { GeorgianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } }
GeorgianNumbering { public static String toGeorgian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { GeorgianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  GeorgianNumbering(); }
GeorgianNumbering { public static String toGeorgian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { GeorgianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  GeorgianNumbering(); static String toGeorgian(int number); }
GeorgianNumbering { public static String toGeorgian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { GeorgianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  GeorgianNumbering(); static String toGeorgian(int number);  }