Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint.utils;
 public class EnumUtils {
Returns a happy version of toString. The default toString of an java.lang.Enum yells at you, i.e. "RED", "BLUE", "DARK_GREEN". toHappyString is much happier: it soothingly returns "Red", "Blue", "DarkGreen".

(In other words, this converts an upper underscore string to an upper camel-case string.)

    public static String toHappyString(Enum enumeration) {
New to GrepCode? Check out our FAQ X