• Skip to primary navigation
  • Skip to content
  • Skip to footer
(think) The occasional ramblings of a weird mind.
  • Archive
  • Tags
  • About
  • Contact
  • Projects
  • Presentations
  • Quotes
    Bozhidar Batsov

    Bozhidar Batsov

    Hacker. Emacs fanatic. Lover of parentheses. Firebrand. Just another programmer with too many opinions. I’m not the best, but I’m pretty good.

    • Sofia, Bulgaria
    • Twitter
    • GitHub
    • LinkedIn
    • Instagram
    • Emacs Redux
    • Meta Redux
    • Email

    A switch on String idiom for Java

    less than 1 minute read

    I’ve always been frustrated with the inability to write a switch on String in Java. However the enum type introduced in Java 5.0 somewhat diminishes the issue. Read this excellent article on the subject.

    Update

    Java 7 now supports switch on String!

    Tags: Java

    Updated: May 4, 2009

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    How are OCaml Programmers Called?

    1 minute read

    Ruby programmers are commonly called Rubyists. Python programmers are often called Pythonistas. Lisp programmers are widely known as Lispers. Clojure program...

    2022: The Year in Review

    4 minute read

    Another year is behind us and it’s time for the obligatory “year in review” blog post. I’ve been feeling a bit lazy, that’s why I’m getting to writing it a b...

    Bozhidar is on Mastodon

    1 minute read

    Twitter these days is all about drama related to… Twitter (Elon Musk). That really pains me, given that as long as it has existed Twitter has been the only s...

    Topic-specific RSS Feeds

    less than 1 minute read

    Someone complained earlier today that my Pixel 6A article was picked up by Planet Emacslife. While I wasn’t involved in adding my blog there and I never prom...

    • Twitter
    • GitHub
    • LinkedIn
    • Feed
    © 2023 Bozhidar Batsov. Powered by Jekyll & Minimal Mistakes.