1
2
package com.codemonkey;
Salida del programa:
Excepciones:
Causa:null - Mensaje:/ by zero
java.lang.ArithmeticException: / by zero
at com.codemonkey.Main.main(Main.java:25)
Causa:null - Mensaje:/ by zero
java.lang.ArithmeticException: / by zero
at com.codemonkey.Main.main(Main.java:31)
Causa:null - Mensaje:2
java.lang.ArrayIndexOutOfBoundsException: 2
at com.codemonkey.Main.main(Main.java:41)
Causa:null - Mensaje:2
java.lang.ArrayIndexOutOfBoundsException: 2
at com.codemonkey.Main.main(Main.java:50)
Error leyendo el archivo:
java.io.FileNotFoundException: /home/fer/Documents/noExiste.dat (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:196)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:139)
at java.base/java.io.FileReader.<init>(FileReader.java:72)
at com.codemonkey.Main.main(Main.java:59)
Archivo no existente
Excepciones:
Causa:null - Mensaje:/ by zero
java.lang.ArithmeticException: / by zero
at com.codemonkey.Main.main(Main.java:25)
Causa:null - Mensaje:/ by zero
java.lang.ArithmeticException: / by zero
at com.codemonkey.Main.main(Main.java:31)
Causa:null - Mensaje:2
java.lang.ArrayIndexOutOfBoundsException: 2
at com.codemonkey.Main.main(Main.java:41)
Causa:null - Mensaje:2
java.lang.ArrayIndexOutOfBoundsException: 2
at com.codemonkey.Main.main(Main.java:50)
Error leyendo el archivo:
java.io.FileNotFoundException: /home/fer/Documents/noExiste.dat (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:196)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:139)
at java.base/java.io.FileReader.<init>(FileReader.java:72)
at com.codemonkey.Main.main(Main.java:59)
Archivo no existente
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.