Hello again, i think switch case also can be used with Strings
That's correct - since Java 7.
In Java 6 and earlier, you could only use byte, short, int, Byte, Short, Int, and enums.
thank you for the info