/** * removeUnderscore method is used for removing underscore from the given input string and creates * the field name in a Java convenstional manner. * * <p><code> * removeUnderscore("EXCHANGE_RATE"); * // output is "exchangeRate" * </code> * * @param strInput * @return */ public static String removeUnderscore(String strInput) { StringBuffer strB = new StringBuffer(); strInput = StringUtil.initLower(strInput); // if (strInput.indexOf("_") > -1) { strInput = strInput.toLowerCase(); // } String strArr[] = strInput.split("_"); strB.append(strArr[0]); for (int i = 1; i < strArr.length; i++) { strB.append(StringUtil.initCaps(strArr[i])); } return strB.toString(); }
// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov Date: 12/11/2006 9:50:27 AM
package com.tcs.ebw.serverside.query;