是否存在将String转换为Title Case的方法? [英] Is there a method for String conversion to Title Case?
本文介绍了是否存在将String转换为Title Case的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有内置的方法可以将字符串转换为标题大小写格式?
解决方案
Apache Commons WordUtils.capitalize() >
Are there any built in methods available to convert a string into Title Case format?
解决方案
Apache Commons StringUtils.capitalize() or Commons Text WordUtils.capitalize()
e.g: WordUtils.capitalize("i am FINE") = "I Am FINE"
from WordUtils doc
这篇关于是否存在将String转换为Title Case的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文