Question from an ignoramus, in java, why does not this work?
nombre = S.nextLine();
nombre= nombre.toLowerCase();
if(nombre.equals("juan") || nombre.equals("pedro"))
{
...
}
I take it as always different, like the String can not be compared by passing the else as the correct option.