help me to create this thing i want the code pleaz :cool:
Printable View
help me to create this thing i want the code pleaz :cool:
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:
Code :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"); } } }