Can we use contains in switch-case Java?

You can’t switch on conditions like x. contains() . Java 7 supports switch on Strings but not like you want it. Use if etc.

Sizin İçin Seçtik  Can you use && in switch case?

Leave a Reply

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

Can we use contains in switch case Java?

You can’t switch on conditions like x. contains() . Java 7 supports switch on Strings but not like you want it. Use if etc.19 Tem 2012

Sizin İçin Seçtik  Antminer S19 Pro kaç watt?

Leave a Reply

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