*Java*
1. Write a public static method named getProduct that takes aHashMap of type String to Integer and returns a double. This methodreturns the maximum result (do not return the original value) oftaking the sine of each value from the input while considering onlypositive numbers from the inputs.
2. Write a public static method named getResult that takes anArrayList of Doubles as a parameters and returns a double. Thismethod returns the value from the input ArrayList
that is closest to 5.42
Expert Answer
An answer will be send to you shortly. . . . .