摘要:
Detect Capital Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be ri 阅读全文
摘要:
Goat Latin A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to 阅读全文
摘要:
对于不是对于单个字符进行操作,而是对单词进行操作时,可以选择一些库函数 常用的有: 1. str.split(" "); 按照空格将字符串进行划分,得到字符串数组 注:这里使用的是正则表达式,当要将一片空格分开,可以采用str.split("\\s+")或者str.split(" +") 如果spl 阅读全文