Can you use switch statements with char Java?

The variable used in a switch statement can only be integers, convertable integers (byte, short, char) , strings and enums. You can have any number of case statements within a switch.

Sizin İçin Seçtik  Is switch case better than if else JavaScript?

Leave a Reply

Your email address will not be published. Required fields are marked *