Write a Java code to: -Define a method called smallest with…

Write a Java code to: -Define a method called smallest with 3 double parameters. The method compares the parameters then returns the smallest value among these values using if ..else statement.                                                                                                                                                                              (SO1.2)   Answer: //method declaration