简单的字符串模拟,写的有点麻烦了
class Solution {
public boolean detectCapitalUse(String word) {
if(word.length()<2){
return true;
}
char[] words = word.toCharArray();
//开头大写
if(isBig(words[0])){
if(isBig(words[1])){
for(int i = 2;i=0 && c-'Z'<=0){
return true;
} else{
return false;
}
}
}



