Sha256: 3d6f3f8123c5e0c5d59e128c4c064749910972455d71c50b9d3a0470e6ceea92

Contents?: true

Size: 400 Bytes

Versions: 281

Compression:

Stored size: 400 Bytes

Contents

import java.util.Arrays;
import java.util.stream.Collectors;

public class PangramChecker {
    private static final int alphaLength = 26;

    public boolean isPangram(String input) {
        return Arrays.stream(input.replaceAll("[^a-zA-Z]", "")
                .toLowerCase()
                .split(""))
                .collect(Collectors.toSet())
                .size() == alphaLength;
    }
}

Version data entries

281 entries across 281 versions & 1 rubygems

Version Path
trackler-2.1.0.0 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.55 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.54 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.53 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.52 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.51 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.50 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.49 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.48 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.47 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.46 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.45 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.44 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.43 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.42 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.41 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.40 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.39 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.38 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.0.8.37 tracks/java/exercises/pangram/src/example/java/PangramChecker.java