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);}

Computer Science & Information Technology

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?

Computer Science & Information Technology

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

Computer Science & Information Technology

To ________ means to replace a saved file with a new version of a file

A) duplicate B) overwrite C) copy D) compress

Computer Science & Information Technology

What is used to declare your own event in C#?

A. handlers B. trigger objects C. delegates D. raisers

Computer Science & Information Technology