How do you write a switch case in Java?

The Java switch expression must be of byte, short, int, long (with its Wrapper type), enums and string. Each case statement can have a break statement which is optional.

Sizin İçin Seçtik  Can we use contains in Java?

Leave a Reply

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