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.2.1.38 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.37 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.36 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.35 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.34 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.33 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.32 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.31 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.30 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.29 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.28 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.27 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.26 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.25 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.24 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.23 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.22 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.21 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.20 tracks/java/exercises/pangram/src/example/java/PangramChecker.java
trackler-2.2.1.19 tracks/java/exercises/pangram/src/example/java/PangramChecker.java