You are viewing a single comment's thread. Return to all comments →
Scanner in = new Scanner(System.in);
System.out.println(in.nextLine().replace(" ", "").toLowerCase().chars().boxed().collect(Collectors.toSet()).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 →
Scanner in = new Scanner(System.in);
System.out.println(in.nextLine().replace(" ", "").toLowerCase().chars().boxed().collect(Collectors.toSet()).size() == 26 ? "Pangram" : "not pangram");