Вам необходимо изменить метод main
следующим образом:
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
System.out.println("Welcome to your closet! Let's see what you can wear!");
System.out.println("Is it cold outside?");
String cold = scan.nextLine().toUpperCase();
if (cold.equalsIgnoreCase("yes")) {
System.out.println("You should wear long sleeves.");
} else if (cold.equalsIgnoreCase("no")) {
System.out.println("You should wear short sleeves.");
} else {
System.out.println("Invalid response");
}
}
Итак, допустимыми являются записи "да" и "нет", и они не чувствительны к регистру (вы можете отправить "ДА", "Да" и т. Д.)