Hello Avnash,

could you pls try them to convert into integer.

*valueOfTExtFieldOne =
Integer.valueOf<http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html#valueOf%28java.lang.String%29>
*(String <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html>
s).. where s needs to pass as text field value.

Thanks\\
Dipak Sodani.


On Fri, Mar 20, 2009 at 7:11 PM, avnash <[email protected]> wrote:

>
> iam a basic learner of java.....i want a solution for the following
> question.......dis is so simple....i dont know wht mistake i hv
> done...please help me solve dis
> problem:
>                                             Write a program that
> creates a user interface to perform integer divisions. The user enters
> two numbers in the textfields, Num1 and Num2. The division of Num1 and
> Num2 is displayed in the Result field when the Divide button is
> clicked. If Num1 or Num2 were not an integer, the program would throw
> a NumberFormatException. If Num2 were Zero, the program would throw an
> ArithmeticException Display the  exception in a message dialog box.
>
>                                 do it quickly!!!!!!!!!!!!!!!!
> >
>


-- 
http://services.nexodyne.com/email/icon/yfcoe0n8W%2BGfRMh0/JMgvuwc%3D/R01haWw%3D/0/image.png

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JAVA-experts" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/JAVA-experts?hl=ab
-~----------~----~----~----~------~----~------~--~---

Reply via email to