• 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
    • 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

    Zed Editor

    1 minute read

    Yesterday the demise of Atom was a very hot topic for many programmers.1 One thing I noticed in the comments here and there was that the original team behind...

    Modern Emacs: Redux

    11 minute read

    New is always better. – Barney Stinson

    Back in Action

    2 minute read

    May you live in interesting times. – an old Chinese curse

    Commercial Emacs

    1 minute read

    Talking never moves anything in Emacs, never did, never will. 2021 Maintainer of GNU Emacs, who then proceeded to keep talking.

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