Anyone know a way to take an integer and convert it to it's representation in another language? I tried this and it dosen't seem to convert the number over.Thanks.
Code:import java.io.*; import java.text.*; import java.util.*; try{ BufferedReader buff = new BufferedReader( new InputStreamReader(System.in)); String input = buff.readLine(); NumberFormat nf = NumberFormat.getInstance(Locale.CHINESE); Number converted = nf.parse(input); System.out.println(converted.shortValue()); }catch(IOException io){ System.err.println(io); }catch(Exception e){ System.err.println(e); }


Thanks.
Reply With Quote
CornedBee
Thanks for the help.
