May someone give me an idea of how can I scan integer in the text field and compare it to use in an if else statement.
Thank you for the time.
coud_ren_26
-11
Junior Poster in Training
Recommended Answers
Jump to PostTextField abc = new TextField(); String text = abc.getText(); try { int num = Integer.parseInt(text); } catch(NumberFormatException e) { }
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.