Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test1 {
- public static void calculate() {
- try {
- int h = 5/0;
- } catch (ArithmeticException e) {
- System.out.println("Hi!");
- e.printStackTrace();
- }
- System.out.println("Bye!");
- }
- public static void main(String[] args) {
- calculate();
- }
- }
- Exception.printStackTrace()
- Exception.printStackTrace()
Add Comment
Please, Sign In to add comment