
public class Pangrams {

	public static void main(String[] args) throws Exception {

		// String [] pangrams = new String [] {
		// "The quick brown fox jumps over the lazy dog",
		// "Pack my box with five dozen liquor jugs",
		// "The five boxing wizards jump quickly"
		// };

		String pangram = "The five boxing wizards jump quickly";

		int[] ascii = new int[128];
		// should find all of the letters btwn 97 + 122 inclusive
		for (int i = 0; i < pangram.length(); i++) {
			int test = pangram.toLowerCase().charAt(i);
			if (test < 128) {
				ascii[test] += 1;
			}
		}

		boolean isPangram = true;
		for (int i = 97; i <= 122; i++) {
			if (ascii[i] == 0) {
				System.out.println("not pangram");
				isPangram = false;
				break;
			}
		}

		if (isPangram) {
			System.out.println("is a pangram");
		}
	}

}

@@ -88,197 +88,24 @@
 %09// 
-String %5B%5D pangrams = new String %5B%5D %7B%0A%09%09// %22The quick brown fox jumps over the lazy dog%22,%0A%09%09// %22Pack my box with five dozen liquor jugs%22,%0A%09%09// %22The five boxing wizards jump quickly%22%0A%09%09// %7D;%0A
+is it a pangram?
 %0A%09%09S
@@ -157,16 +157,17 @@
  quickly
+!
 %22;%0A%0A%09%09in
@@ -167,16 +167,17 @@
 ;%0A%0A%09%09int
+ 
 %5B%5D ascii
@@ -199,72 +199,72 @@
 ;%0A%09%09
-// should find all of the letters btwn 97 + 122 inclusive
+%0A%09%09char %5B%5D chars = pangram.toLowerCase().toCharArray();%0A%09%09
 %0A%09%09for
- 
 (int
@@ -279,24 +279,20 @@
 i %3C 
-pangram
+chars
 .length
-()
 ; i+
@@ -314,47 +314,29 @@
 t = 
-pangram.toLowerCase().charAt(i)
+(int) chars%5Bi%5D
 ;%0A%09%09%09if
- 
 (tes
@@ -381,43 +381,65 @@
 %09%09%7D%0A
+%09%09
 %0A%09%09
-boolean isPangram = true
+System.out.println(Arrays.toString(ascii))
 ;%0A
+%09%09%0A
 %09%09for
- 
 (int
@@ -469,17 +469,16 @@
  %7B%0A%09%09%09if
- 
 (ascii%5Bi
@@ -519,23 +519,26 @@
 not 
+a 
 pangram
+!
 %22);%0A%09%09%09%09
 isPa
@@ -537,36 +537,22 @@
 %09%09%09%09
-isPangram = false;%0A%09%09%09%09break
+System.exit(1)
 ;%0A%09%09
@@ -562,29 +562,11 @@
 %09%09%7D%0A
-%0A
 %09%09
-if (isPangram) %7B%0A%09
+%0A
 %09%09Sy
@@ -583,17 +583,17 @@
 rintln(%22
-i
+I
 s a pang
@@ -599,16 +599,13 @@
 gram
+!
 %22);%0A
-%09%09%7D%0A
 %09%7D%0A%0A

Update Pangrams.java