除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
转换成大写的字母(如果是小写)
继承的名字会转换成大写。
It's not capitalizing the whole thing.
它不是把整个单词转换成大写的。
s2 So, I'm passing in the first character in s2, I'm making it uppercase and then I'm putting it back so casually speaking this is just capitalizing the first letter of whatever word the user typed in to s2.
那么,我把第一个字符传递给,我把它转换成大写的,然后存下来,简单说,这就是把用户输入s2中的单词,的第一个字母转换成大写的。
应用推荐