Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void divCheck(int num1, int num2){
- try{
- System.out.println(num1/num2);
- } catch(Exception e){
- System.out.println("Cannot divide by 0.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement