Calculate your EMI:
Loan Amount: | |
Interest Rate: | |
Number of years: | |
EMI Amount:
Total Amount:
Total Amount:
Loan Amount: | |
Interest Rate: | |
Number of years: | |
Here is the code to convert the data to Camel case i.e. First letter in word is capital and other are small case
import java.util.StringTokenizer;
private static String converCamelCase(String strdata){
StringBuffer strbufCamelCase = new StringBuffer();
StringTokenizer st = new StringTokenizer(strdata);
if(null == strdata || strdata.length() == 0){
return "";
}
while(st.hasMoreTokens()){
String strWord = st.nextToken();
strbufCamelCase.append(strWord.substring(0,1).toUpperCase());
if(strWord.length()>1){
strbufCamelCase.append(strWord.substring(1).toLowerCase());
}
strbufCamelCase.append(" ");
}
return strbufCamelCase.toString();
}