Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mainPackage;
- public class Test85 {
- public static void main(String[] args) {
- method.printAnswer(10, System.out);
- }
- public static SampleMethod method = (x,out) -> { out.println(x*x);};
- }
- interface SampleMethod{
- public abstract void printAnswer(int p,java.io.PrintStream out);
- }
Advertisement
Add Comment
Please, Sign In to add comment