Czym sie to się różni czy dam throws czy nie?
public Person get(int index) {
if(index <= persons || index<0)
System.out.println("Błędny parametr");
return person[index];
}
public Person get(int index) throws ArrayIndexOutOfBoundsException{
if(index <= persons || index<0)
throw new ArrayIndexOutOfBoundsException("Błędny parametr");
return person[index];
}