public class Jcnvnumbertothaiwa { //Variable in Class static String mtch[] = {"","หนึ่ง","สอง","สาม","สึ่","ห้า","หก","เจ็ด","แปด","เก้า"}; static String mtdec[]={"พัน","ร้อย","สิบ","ล้าน","แสน","หมื่น","พัน","ร้อย","สิบ",""} ; static String mstnum="",mstthai="",choice1="",cnumthai="",cin_number = "",tmp_key="" ; static double choice=0; static int ncnt = 1,nlen = 0,nlen2 = 0,nnumber=0,din_number2 = 0 ; public static String main(Double in_number){ if ((in_number > 9999999999.99) || (in_number <= 0)) { return "" ; } cnumthai = "" ; din_number2 = (int) (in_number*100) ; cin_number = Integer.toString(din_number2) ; mstnum = cin_number ; nlen = cin_number.length() ; nlen2= 12-nlen ; //add "x" for (int xj=0;xj