getText() to int

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #1

    getText() to int

    how to convert value from getText to integer?
    thank u
  • ashsa
    New Member
    • Feb 2007
    • 45

    #2
    Code:
    int youwanted=Integer.parseInt(yourObject.getText());
    This 'll throw a NumberFormatExc eption if the text passed to parseInt is not a numeral

    Originally posted by oll3i
    how to convert value from getText to integer?
    thank u

    Comment

    Working...