You are viewing a single comment's thread. Return to all comments →
public static String pangrams(String s) { // Write your code here var letters = s.chars() .filter(c -> Character.isAlphabetic(c)) .map(c -> Character.toLowerCase(c)) .mapToObj(c -> c) .collect(Collectors.toSet()); return letters.size() == 26 ? "pangram" : "not pangram";
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →