code:

String name = “yaronspace”;
name = name.substring(0,1).toUpperCase() + name.substring(1);

output:

Yaronspace

本文地址:http://www.yaronspace.cn/blog/index.php/archives/181

来自yaronspace.cn  本文链接:http://yaronspace.cn/blog/archives/181