public static String labelFromCamelCase(String camel) {
		StringBuilder label = new StringBuilder();
		for (int i = 0; i < camel.length(); i++) {
			char c = camel.charAt(i);
			if (Character.isDigit(c)) {
				if (i > 0 && Character.isAlphabetic(camel.charAt(i - 1)))
					label.append(" ");
			}
			if (c == '_') {
				label.append(" ");
			} else if (Character.isUpperCase(c)) {
				label.append(' ');
				label.append(Character.toLowerCase(c));
			} else {
				label.append(c);
			}
		}
		return label.toString();
	}
public static String labelFromCamelCase ( String camel ) { StringBuilder label = new StringBuilder ( ) ; for ( int i = 0 ; i < camel . length ( ) ; i ++ ) { char c = camel . charAt ( i ) ; if ( Character . isDigit ( c ) ) { if ( i > 0 && Character . isAlphabetic ( camel . charAt ( i - 1 ) ) ) label . append ( " " ) ; } if ( c == '_' ) { label . append ( " " ) ; } else if ( Character . isUpperCase ( c ) ) { label . append ( ' ' ) ; label . append ( Character . toLowerCase ( c ) ) ; } else { label . append ( c ) ; } } return label . toString ( ) ; }
Converts a camelcase variable name to a human readable text.

@param camel the String to be converted
@return the hopefully human readable version