@Test public void numberGreaterThan9999toArmenianTest() { Assert.assertEquals("\u0554\u0554\u0554\u0554\u0554\u0554\u0554\u0532", ArmenianNumbering.toArmenian(63002)); }
public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); }
ArmenianNumbering { public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } }
ArmenianNumbering { public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  ArmenianNumbering(); }
ArmenianNumbering { public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  ArmenianNumbering(); static String toArmenian(int number); }
ArmenianNumbering { public static String toArmenian(int number) { StringBuilder result = new StringBuilder(); for (int i = DIGITS.length - 1; i >= 0; i--) { ArmenianDigit curDigit = DIGITS[i]; while (number >= curDigit.value) { result.append(curDigit.digit); number -= curDigit.value; } } return result.toString(); } private  ArmenianNumbering(); static String toArmenian(int number);  }