Summer Outfit проблем
Здравейте, имам проблемче още с вкарването на входните данни и програмата гърми, пускам само част от нея, която пак гърми.
import java.util.Scanner; public class SummerOutfit { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int degrees = Integer.parseInt(scanner.nextLine()); String partOfDay = scanner.nextLine(); String outfit = ""; String shoes = ""; if (partOfDay.equals("Morning")) { if (10 <= degrees && degrees <= 18) { outfit = "Sweatshirt"; shoes = "Sneakers"; } else if (18 < degrees && degrees <= 24) { outfit = "Shirt"; shoes = "Moccasins"; } else { outfit = "T-Shirt"; shoes = "Sandals"; } } System.out.printf("It's %.2d degrees, get your %s and %s.", degrees, outfit, shoes); } }