Used scanner for user input struggling to get in to if loop when providing value for suncondition
@SuppressWarnings("resource")
Scanner temp = new Scanner(System.in);
int temperature;
System.out.print("Enter the temperature : ");
temperature=temp.nextInt();
@SuppressWarnings("resource")
Scanner suncon= new Scanner(System.in);
String suncondition;
System.out.print("Enter the Sun condition : ");
suncondition=suncon.nextLine();
if ((temperature==50) || (suncondition=="Sunny")){
System.out.println(" This is tooo hot");
}