NumberFormatException when parsing Hindi numbers

后端 未结 5 1922
走了就别回头了
走了就别回头了 2021-01-25 05:33

I have an android application and today I have got a crash report which contains this: \"NumberFormatException\"

Th

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-25 06:05

    You can use the following method which receives a string and converts every Indian digit inside it to Arabic.

    public static String convertAllIndianToArabic(String str)
    {
        for(int i=0; i

提交回复
热议问题