Home > Back-end > Could you tell me how to use the anonymous class lambda expressions to rewrite?
Could you tell me how to use the anonymous class lambda expressions to rewrite?
Time:10-22
I only know that interface can be rewritten so that how to use the lambda expressions of change?
Class A { Public void (a) { System. The out. Println (" hi "); } } Public class Test { Public static void main (String [] args) { A hello=new A () { Public void (a) { System. Out.println (" Hello!" ); } }; Hello. (a); } }
CodePudding user response:
What this class is so easy to transform, you again with no flow