Can any one help me how to convert the object in to first letter as capital. that should look like..
Example: yes 
Expected : Yes.
Can any one help me how to convert the object in to first letter as capital. that should look like..
Example: yes 
Expected : Yes.
 
    
    Things could be better if you could explain a bit more about the object you are talking about however by the example you quoted Take the first letter of the string and then convert it to capital with Character.toTitleCase(ch) . 
Refer to the following links for details and please share the object for better explanation Link 1
Link 2
Link 3