interface Func{ TOut run(TIn in); } class Main { public static void main() { Func func = Integer::toString; System.out.println(func.run(6)); } }