fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.io.*;
  4. import java.nio.file.*;
  5.  
  6. /* Name of the class has to be "Main" only if the class is public. */
  7. class Ideone
  8. {
  9. interface I<T> {
  10. void accept(T t) throws IOException;
  11. }
  12. public static void main (String[] args) throws java.lang.Exception
  13. {
  14. I<Path> consumer = Files::delete;
  15. }
  16. }
Success #stdin #stdout 0.21s 320768KB
stdin
Standard input is empty
stdout
Standard output is empty