master
yuanguangxin 2 years ago
parent b533c626fb
commit 13f120ec98

@ -8,12 +8,6 @@ public class Main {
private static final char[] units = {'十', '百', '千', '万', '亿'}; private static final char[] units = {'十', '百', '千', '万', '亿'};
private static final StringBuilder ans = new StringBuilder(); private static final StringBuilder ans = new StringBuilder();
/**
* ans , `` `亿` units ,
* 59,
*
* @param num
*/
private static void intToChineseNum(int num) { private static void intToChineseNum(int num) {
String s = String.valueOf(num); String s = String.valueOf(num);
char[] chars = s.toCharArray(); char[] chars = s.toCharArray();
@ -53,9 +47,4 @@ public class Main {
} }
} }
} }
public static void main(String[] args) {
Main.intToChineseNum(121399013);
System.out.println(ans.toString());
}
} }

Loading…
Cancel
Save