Fill in the code below in the underline:
```
public class Test {
public static void main(String[] args) {
Test test = new Test();
test.setAction2(______________________________);
}
public void setAction2(T2 t) {
t.m(4.5);
}
}
interface T2 {
public void m(Double d);
}
```
a. () -> System.out.print(e)
b. (e) -> System.out.print(e)
c. e -> System.out.print(e)
d. (e) -> {System.out.print(e);}
b. (e) -> System.out.print(e)
c. e -> System.out.print(e)
d. (e) -> {System.out.print(e);}
You might also like to view...
What is the difference between a security patch, a feature update, and a service pack?
What will be an ideal response?
When prompted to enter criteria, the data you enter is stored with the query design as criteria
Indicate whether the statement is true or false
To ________ means to replace a saved file with a new version of a file
A) duplicate B) overwrite C) copy D) compress
What is used to declare your own event in C#?
A. handlers B. trigger objects C. delegates D. raisers