8 Replies Latest reply: Jun 30, 2008 8:43 AM by 807589 RSS

    How to convert string "      123" to integer 123

    807589
      Hello guys!


      I have a question here, if a string is " 123", how can I convert it to integer 123?

      The point is in the string " 123", before 123 there are some spaces, I can not directly use this command [Integer.parseInt].

      Please help me, thanks.


      Lee