help me to create this thing i want the code pleaz
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
help me to create this thing i want the code pleaz
Yeah.. ask it in the forum called "Member Introductions".
Also I don't think anyone wants to help, because if you open a webbrowser and go to google and just type in "Java try block" you get all sorts of results, but if youre that lazy to not even do that, then its youre bad luck.
Hello Ahmed,
Welcome to the forums.
Have you started to write any code? If so, please post what you have and we can see if you are doing it right.
A quick example would be like this:
class Nested_Try { public static void main (String args [ ] ) { try { int a = Integer.parseInt (args [0]); int b = Integer.parseInt (args [1]); int quot = 0; try { quot = a / b; System.out.println(quot); } catch (ArithmeticException e) { System.out.println("divide by zero"); } } catch (NumberFormatException e) { System.out.println ("Incorrect argument type"); } } }
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputation by clicking the button on their useful posts.