mirror of
https://gitee.com/many2many/java-web.git
synced 2025-01-11 14:40:55 +08:00
fix
This commit is contained in:
parent
abd79df879
commit
9558107356
@ -147,11 +147,13 @@ public interface SimpleFunctionalInterface {
|
||||
|
||||
Lambda 表达式的一般语法是:
|
||||
|
||||
```java
|
||||
(parameters) -> expression
|
||||
|
||||
> (parameters) -> expression
|
||||
|
||||
或者
|
||||
(parameters) -> { statements; }
|
||||
```
|
||||
|
||||
> (parameters) -> { statements; }
|
||||
|
||||
|
||||
- `parameters`:这是参数列表,可以是一个或多个参数,参数类型可以省略。
|
||||
- `->`:这是 Lambda 操作符,将参数部分与 Lambda 体分开。
|
||||
|
Loading…
Reference in New Issue
Block a user