me estan enseñando try catch, hice esto para ver si funcionaba...
Código:
public static void main(String[] args) {
Clase r = new Clase ();
try
{
for (int x=0;x<r.a.length+1;x++)
r.a[x]=x;
}
! catch (IOException K)
{
System.err.println("Hubo un error"+K.getMessage());
}
pero no funciona :S dice "exception IOException is never thrown in body of corresponding try statement" en la linea donde puse el "!", D:, yo puse igual que dice en el curso :l,
arriba de todo, puse import java.io.IOException;