public class TestLambda {
public static void main(String[] args) {
Movable ani = a-> System.out.println("走了"+a+"步");
ani.move(2);
}
}
interface Movable{
void move(int a);
}
原文:https://www.cnblogs.com/zzzstudy/p/14613972.html