What can I use instead of switch-case Java?

While switch will only allow you to switch using equality against integer or Enum types, if lets you use any boolean logic. char, byte, short can be used in switches too.

Sizin İçin Seçtik  İş analistleri ne iş yapar?

Leave a Reply

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

What can I use instead of switch-case Java?

While switch will only allow you to switch using equality against integer or Enum types, if lets you use any boolean logic. char, byte, short can be used in switches too.

Sizin İçin Seçtik  Which courses are best on Udemy?

Leave a Reply

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