Ya, I like that much better too ;)
Paul Clapham wrote:I would be inclined to use an array and just look up the names, rather than a forest of if's and else's. (Although consistent indentation would be a design pattern to be considered for the original code.)
I'm leaving the static imports needed to make this work as an exercise for the student.