If I have an array of names, how do I check if they all start with an upper case letter using forall (or something else functional)?
String[] names = {"Linda", "Peter", "Carol", "Paul"};
names.forall(name -> Character.isUpperCase(name.charAt(0)));
that is wrong and I'm not really familiar with higher order functions yet so I could use some help.