@Test public void toGeorgianTest() { Assert.assertEquals("\u10F5", GeorgianNumbering.toGeorgian(10000)); Assert.assertEquals("\u10F4\u10E8\u10F2\u10D6", GeorgianNumbering.toGeorgian(7967)); }
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);  }