import java.util.Scanner;
class VerificaLetra {
public static void main
(String[] args
) {
Scanner scan;
System.
out.
print("Informe o sexo. F para feminino e M "+ "para Masculino: ");
scan
= new Scanner
(System.
in); letra = scan.nextLine();
if (letra == "f" || letra == "F") {
sexo = "Sexo = Feminino";
}
else if (letra == "m" || letra == "M") {
sexo = "Sexo = Masculino";
}
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKY2xhc3MgVmVyaWZpY2FMZXRyYSB7CgpwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CgogICAgU3RyaW5nIHNleG8gPSAiICI7CiAgICBTdHJpbmcgbGV0cmE7CiAgICBTY2FubmVyIHNjYW47CgogICAgU3lzdGVtLm91dC5wcmludCgiSW5mb3JtZSBvIHNleG8uIEYgcGFyYSBmZW1pbmlubyBlIE0gIisKICAgICAgICAgICAgICAgICAgICAgInBhcmEgTWFzY3VsaW5vOiAiKTsKICAgIHNjYW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgbGV0cmEgPSBzY2FuLm5leHRMaW5lKCk7CgogICAgaWYgKGxldHJhID09ICJmIiB8fCBsZXRyYSA9PSAiRiIpIHsKICAgICAgICBzZXhvID0gIlNleG8gPSBGZW1pbmlubyI7CiAgICBTeXN0ZW0ub3V0LnByaW50bG4obGV0cmEpOwogICAgfQogICAgZWxzZSBpZiAobGV0cmEgPT0gIm0iIHx8IGxldHJhID09ICJNIikgewogICAgICAgIHNleG8gPSAiU2V4byA9IE1hc2N1bGlubyI7CiAgICB9CiAgICBTeXN0ZW0ub3V0LnByaW50bG4oc2V4byk7ICAgICAgICAKICAgIH0KfQ==