1.) You still have the typo for charAt
2.) You need to have make use of brackets like this
[CODE=java]JOptionPane.sho wMessageDialog( null, inputString + " = " + (n1 - n2));[/CODE]
3.) What do you hope to match using split("//s")? If you want to match a space then you need to use split("\\s").
4.) All this can be found in that tutorial.
2.) You need to have make use of brackets like this
[CODE=java]JOptionPane.sho wMessageDialog( null, inputString + " = " + (n1 - n2));[/CODE]
3.) What do you hope to match using split("//s")? If you want to match a space then you need to use split("\\s").
4.) All this can be found in that tutorial.
Comment