Using StringTokenizer in Coverting words to number
Can anyone please help me on how to convert words into numbers in Java programming, using string tokenizer. Your answer will be highly appreciated. EDITED : I already made this code . but there is an error . like when i input one thousand one hundred , the program outputs 100100 . need your help guys . what do you think is the problem with my program and also what should i do . thanks alot .. import javax.swing.*; import java.util.*; import java.text.*; public class convertwordstonumbers { public static void main(String[] args) { String sInput; sInput=JOptionPane.showInputDialog("Enter a word