Consider the following method, which takes as input a temperature in degrees Fahrenheit and returns the corresponding temperature in degrees Celsius. public double fahrenheitToCelsius(double f)
double c = (f - 32) * 5 / 9; return c;
Assume that each of the following code segments appears in a method in the same class as fahrenheitToCelsius. Which of the following code segments prints the temperature in degrees Celsius that corresponds to 32 degrees Fahrenheit? 1) System.out.println(fahrenheitToCelsius(32)); 2) System.out.println(fahrenheitToCelsius(0)); 3) System.out.println(fahrenheitToCelsius(100)); 4) System.out.println(fahrenheitToCelsius(-40));