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.119 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.118 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.117 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.116 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.115 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.114 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.113 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.111 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.110 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.109 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.108 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.107 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.106 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.105 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.104 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.103 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.102 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.101 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.100 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java
trackler-2.2.1.99 tracks/java/exercises/pangram/.meta/src/reference/java/PangramChecker.java