Need help with Split String to create a calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #16
    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.

    Comment

    • Max347
      New Member
      • Feb 2008
      • 10

      #17
      Originally posted by r035198x
      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.

      PROBLEM SOLVED! You are the master, thank you so much for all your help! Max

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #18
        Originally posted by Max347
        ...You are the master, thank you so much for all your help! Max
        I am not the master. That tutorial is. Everything I said is in that tutorial.

        Comment

        Working...