Throws ERRO - Urgente

0 respostas
P
Olá amigos,

tenho o seguinte interface que complia OK :

package DataStructures;

public class NoSuchElementException extends RuntimeException

{

public NoSuchElementException( )

{

super();

}

public NoSuchElementException( String message )

{

super(message);

}

}
mas quando compilo outro interface que faz uso do anterior :

package DataStructures;

public interface Iterator<E>

{
boolean hasNext( );
E next( ) throws NoSuchElementException;

}

tenho o seguinte erro :

Iterator.java:12: cannot find symbol

symbol  : class NoSuchElementException

location: interface DataStructures.Iterator<E>

E next( ) throws NoSuchElementException;

^

1 error

Onde estou a falhar ???

Criado 1 de abril de 2006
Respostas 0
Participantes 1