Satyam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.healthcarecommonutil.util;
// TODO: Auto-generated Javadoc
/**
* The Class Initcap.
*
* @author user3
*/
public class Initcap {
/**
* To init cap.
*
* @param param the param
* @return the string
*/
public static String toInitCap(String param)
{
if(param != null && param.length()>0)
{
char[] charArray = param.toCharArray();
charArray[0] = Character.toUpperCase(charArray[0]);
return new String(charArray);
}
else
{
return "";
}
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Fri 20 Jul, 2018 05:59:17 +0000 |
|