Advertisement
Smudla

Untitled

Jan 8th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1.  
  2.  
  3. public class Main{
  4.     public interface FunctionalInterface {
  5.     public void prvni();
  6. }
  7.     public interface Potomek extends FunctionalInterface{
  8.     @Override
  9.     public void prvni();
  10. }
  11.  
  12.     public static void main(String[] args) throws InterruptedException {
  13.  
  14.     FunctionalInterface funkcionalniInterface = new FunctionalInterface() {
  15.         @Override
  16.         public void prvni() {
  17.             System.out.println("Funkcionalni rozhrani");
  18.         }
  19.     };
  20.    
  21.     Potomek potomek = () -> System.out.println("Potomek");
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement