fork download
  1.  
  2. import java . io . IOException ;
  3. import java . util . Iterator ;
  4.  
  5. interface IOIterator < E > extends Iterator < E >
  6. {
  7. public E next ( ) throws IOIteratorException ; // this line is not necessary
  8. }
  9.  
  10. class IOIteratorException extends RuntimeException
  11. {
  12. private final IOException cause ;
  13.  
  14. IOIteratorException ( IOException cause )
  15. {
  16. super ( cause ) ;
  17. this . cause = cause ;
  18. }
  19.  
  20. @ Override
  21. public IOException getCause ( )
  22. {
  23. return cause ;
  24. }
  25. }
  26.  
  27.  
  28. class Main
  29. {
  30. public static void main ( String [ ] args )
  31. {
  32. }
  33. }
Success #stdin #stdout 0.07s 215488KB
stdin
Standard input is empty
stdout
Standard output is empty