Anonymous user
Pangram checker: Difference between revisions
m
→{{header|Java}}: Removed unnecessary concatenation and toLowerCase() operation, added early exit if character is missing.
m (→{{header|PARI/GP}}: ...and show its use) |
m (→{{header|Java}}: Removed unnecessary concatenation and toLowerCase() operation, added early exit if character is missing.) |
||
Line 466:
<lang java5>public class Pangram {
public static boolean isPangram(String test){
if ((test.indexOf(a) < 0) && (test.indexOf((char)(a + 32)) < 0))
▲ return pangram;
}
|