java - Easy way to print arabic numbers -
i want print numbers 1...10000 latin , arabic numbers. there fast , easy way print arabic numbers 1...10000 in loop?
many in advance!
you can use below code convert in arabic.
int arabic_unicode = 1632; int num = 786; string str_en = num+""; stringbuilder builder_ar = new stringbuilder(); (int = 0; < str_en.length(); ++i) { builder_ar.append((char) ((int) str_en.charat(i) - 48 + arabic_unicode)); } system.out.println("arabic : " + builder_ar.tostring());
above code convert int arabic number. print 1------10000 can use loop accordingly. please try yourself.
Comments
Post a Comment