Olá amigos,
tenho a seguinte classe que complia OK :
package DataStructures;
public class NoSuchElementException extends RuntimeException
{
public NoSuchElementException( )
{
super();
}
public NoSuchElementException( String message )
{
super(message);
}
}
mas quando compilo uminterface que faz uso da classe anterior :
package DataStructures;
public interface Iterator
{
boolean hasNext( );
E next( ) throws NoSuchElementException;
}
tenho o seguinte erro :
Iterator.java:12: cannot find symbol
symbol : class NoSuchElementException
location: interface DataStructures.Iterator
E next( ) throws NoSuchElementException;
^
1 error
Onde estou a falhar ???