Given TripleThis.java:
//IMG//
Compiling TripleThis.java gives this compiler warning:
Note: TripleThis.java uses unchecked or unsafe operations.
Which two replacements remove this compiler warning and prints 12? (Choose two.)
- A.Replace line 12 with public static void printValue(Function f, int num) {
- B.Replace line 12 with public static void printValue(Function f, T num) {
- C.Replace line 9 with Function tripler = x —> { return (Integer) x * 3; }
- D.Replace line 12 with public static void printValue(Function f, Integer num) {
- E.Replace line 9 with Function tripler = x -> { return x * 3; }
- F.Replace line 9 with Function tripler = x -> [ return x * 3; ]