Does Java case work with strings?

Java (before version 7) does not support String in switch/case . But you can achieve the desired result by using an enum. Learn to use else .

Sizin İçin Seçtik  Is switch case still used?

Leave a Reply

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