str = 'capitalize first letter of each word in a String';
print(str.title())
Output -
Capitalize First Letter Of Each Word In A String
Process finished with exit code 0
str = 'capitalize first letter of each word in a String';
print(str.title())
Output -
Capitalize First Letter Of Each Word In A String
Process finished with exit code 0
About javacodeimple
Kumar Bhatia is a technical resource working with Accenture and owns this blog on Java.
No comments:
Post a Comment