You are viewing a single comment's thread. Return to all comments →
I used Java 8. One line. System.out.println(in.nextLine().replace(" ", "").toLowerCase().chars().boxed().collect(Collectors.toSet()).size() == 26 ? "pangram" : "not pangram");
Pangrams
You are viewing a single comment's thread. Return to all comments →
I used Java 8. One line. System.out.println(in.nextLine().replace(" ", "").toLowerCase().chars().boxed().collect(Collectors.toSet()).size() == 26 ? "pangram" : "not pangram");