You are viewing a single comment's thread. Return to all comments →
Java
public static String pangrams(String s) { s = s.toLowerCase().replaceAll("\\s+",""); ArrayList<String> list = new ArrayList<String>(Arrays.asList(s.split(""))); long result = list.stream().distinct().count(); if(result == 26L){ return "pangram"; } return "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 →
Java