Created
September 9, 2015 00:32
-
-
Save jkutner/58e706e2d75bd3b27dd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cloud { | |
public static void example(String s) { | |
System.out.println("static mymethod " + s); | |
} | |
interface MyMethod{ | |
public void interfaceMethod(String s); | |
} | |
public static void main(String[] args) { | |
new Heroku(Cloud::example); | |
} | |
static class Heroku { | |
public Heroku(MyMethod m) { | |
m.interfaceMethod("test string"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment