aspose file tools*
The moose likes Java in General and the fly likes how to achieve this ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

how to achieve this ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

what i want to do is when i enter three values like 52 three 50 my code should ignore non integer values and should perform addition on the given integer values ....
my code


output is 0 if we enter any non integer values . with two integer values .


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
I think you are duplicating questions, so shall close this thread.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to achieve this ?