You are viewing a single comment's thread. Return to all comments →
Using java 8 streams:
Scanner scan = new Scanner(System.in); String s = new String( scan.nextLine() ).toLowerCase(); HashSet<Integer> h = new HashSet<Integer>(); s.chars().forEach(h::add); System.out.println( (h.size()==27 ? "" :"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 →
Using java 8 streams: