// convert number to thai import java.io.*; import javax.swing.*; import java.util.*; import java.awt.*; class jav_cnvnumtothaiwa{ //Variable in Class static BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); // รับค่าจาก Keyboard static public JTextArea outputTextArea = new JTextArea(10,50) ; //กำหนดค่า textarea 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 void main(Double in_number) throws IOException // main method { 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