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  What does optional in python mean?

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  How long before 5G is nationwide?

Leave a Reply

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