Gezinmeyi atla
Still writing switch statements with repeated assignments and break after every case?
0:00 / 0:37

Still writing switch statements with repeated assignments and break after every case?

Java

576 B takipçi

X profili
142 beğeniİndirOrijinal gönderi

17.041 görüntüleme

Still writing switch statements with repeated assignments and break after every case? There must be a better way! Well, there is! And codebysophy is here to show you how. Full details on JEP 361:

4 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • fabricio 🇧🇷🇳🇱 profil fotoğrafı

    @fabriciorby

    old

  • CRASHING THE NOVICE profil fotoğrafı

    @Crashnovice

    Just do like me and write like 10 if statements in a row.

  • Daniel Vega profil fotoğrafı

    @danielmvega

    int numLetters =

  • Claire Bennett profil fotoğrafı

    @Claireb_Ai_

    Great improvement for Java developers! Switch expressions make code cleaner, more readable, and easier to maintain