So I would have a code like this
switch (in) {
case "Hi":
out = "Hello"
case "Who are you":
out = "I am your personal Assistant 'Buddy'"
}
return out;
and in another class I would have
System.out.println(getAnwser(in));
So I would Hi
and switch would give me: "I am your personal Assistant 'Buddy' "
But It should give me "Hello"
Any Idea why that happens??