I can't find the answer in my book and it's an easy one but I'm missing something simple here.
I have a program where I ask the user "choose customer or employee C or E" Then after that I need to say if they picked C then do this or if they picked E do that. I'm new and struggling so I know this is probably an easy thing but I'm not getting it.
Scanner in = new Scanner(System.in);
system.out.println("choose c or e: ");
if (in.equalsIgnoreCase("c"))
{
//do something
}
if (in.equalsIgnoreCase("e"))
{
// do something
}
what am I doing wrong here?