### Question:
TextUtil { public static String number2Chinese(long number) { String sn = String.valueOf(number); String result = ""; if (sn.length() == 1) { result += number2Chinese((int) number); return result; } else if (sn.length() == 2) { if (sn.substring(0, 1).equals("1")) { result += "十"; } else { result += (number2Chinese((int) (number / 10)) + "十"); } result += number2Chinese(number % 10); } else if (sn.length() == 3) { result += (number2Chinese((int) (number / 100)) + "百"); if (String.valueOf(number % 100).length() < 2 && number % 100 > 0) { result += "零"; } result += number2Chinese(number % 100); } else if (sn.length() == 4) { result += (number2Chinese((int) (number / 1000)) + "千"); if (String.valueOf(number % 1000).length() < 3 && number % 1000 > 0) { result += "零"; } result += number2Chinese(number % 1000); } else if (sn.length() < 9) { result += (number2Chinese(number / 10000) + "万"); if (String.valueOf(number % 10000).length() < 4 && number % 10000 > 0) { result += "零"; } result += number2Chinese(number % 10000); } else { result += (number2Chinese(number / 100000000) + "亿"); if (String.valueOf(number % 100000000).length() < 8 && number % 100000000 > 0) { result += "零"; } result += number2Chinese(number % 100000000); } return result; }  static boolean isEmpty(String text); static String MD5(String content); static String SHA1(String content); static String SHA224(String content); static String SHA256(String content); static String SHA384(String content); static String SHA512(String content); static byte[] digest(byte[] data, String algorithm); static String HmacMD5(String content, String key); static String HmacSHA1(String content, String key); static String HmacSHA224(String content, String key); static String HmacSHA256(String content, String key); static String HmacSHA384(String content, String key); static String HmacSHA512(String content, String key); static byte[] Hmac(byte[] data, String algorithm, byte[] key); static String encodeURL(String data, String enc); static String decodeURL(String data, String enc); static String string2Unicode(String string); static String unicode2String(String unicode); static String formetByteLength(long size); static String money2Chinese(double money); static String money2ChineseTraditional(double money); static String number2Chinese(long number); static String bytes2Hex(byte... bytes); static String bytes2Hex(byte[] bytes, boolean space); static byte[] hex2Bytes(String inHex); static String encodeBase64(byte[] content); static byte[] decodeBase64(String content);  }### Answer:
@Test public void number2Chinese() { assertEquals("一亿零二百四十万零九十", TextUtil.number2Chinese(102400090)); }