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.180 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.179 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.178 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.177 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.176 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.175 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.174 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.173 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.172 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.171 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.170 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.169 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.167 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.166 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.165 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.164 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.163 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.162 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.161 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.160 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java