package class3_2_Deciding; // Josiah Yoder, MSOE, 23 September 2015 import java.util.Scanner; public class Deciding { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Enter the temperature of the water (°C): "); double temperatureC = in.nextDouble(); if (temperatureC < 0 || temperatureC > 10) { System.out.println("You may not drink the water"); } else { System.out.println("You may drink the water"); } } }