What is the syntax of a lambda expression in Java?
The syntax for lambda expressions is `() -> statement;` without parameters and the arrow operator.
Thatâ€™s partially correct. The syntax does involve `() -> statement`, but lambda expressions can also take parameters, depending on the use case.
Can you explain how you would define a lambda expression that accepts one parameter and performs an action?