Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Principal {
- public static void main(String[] args) {
- try{
- System.out.println("Antes ");
- System.out.println(10/0);
- }catch(ArithmeticException e){
- System.out.println("Não da pra dividir por 0");
- }
- System.out.println("Depois ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement