No matter what I answer, both "Yes" and "yes" only show ELSE
. Where am I going wrong?
package saudacao;
import java.util.*;
public class Saudacao {
public static void main(String[] args) {
System.out.println("Ola, bom dia, voce esta bem hoje?");
Scanner sdc_recebe = new Scanner(System.in);
String sdc_armazena = sdc_recebe.nextLine();
if (sdc_armazena == "Sim") {
System.out.println("Que bom!!!");
} else {
System.out.println("Que pena!!!");
}
}
}