char q = Character.toUpperCase('d');
string s="hello"; s = Character.toUpperCase(s.charAt(0)) + s.substring(1); The output will be: Hello
yourString.chars().anyMatch(Character::isUpperCase)