@@ -0,0 +1,874 @@
+package Question1_1;%0A%0Apublic class Question %7B%0A%0A%09public static boolean isUniqueChars(String str) %7B%0A%09%09if (str.length() %3E 128) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09int checker = 0;%0A%09%09for (int i = 0; i %3C str.length(); i++) %7B%0A%09%09%09int val = str.charAt(i) - 'a';%0A%09%09%09if ((checker & (1 %3C%3C val)) %3E 0) return false;%0A%09%09%09checker %7C= (1 %3C%3C val);%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%09%0A%09public static boolean isUniqueChars2(String str) %7B%0A%09%09if (str.length() %3E 128) %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09boolean%5B%5D char_set = new boolean%5B128%5D;%0A%09%09for (int i = 0; i %3C str.length(); i++) %7B%0A%09%09%09int val = str.charAt(i);%0A%09%09%09if (char_set%5Bval%5D) return false;%0A%09%09%09char_set%5Bval%5D = true;%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%09%0A%09public static void main(String%5B%5D args) %7B%0A%09%09String%5B%5D words = %7B%22abcde%22, %22hello%22, %22apple%22, %22kite%22, %22padle%22%7D;%0A%09%09for (String word : words) %7B%0A%09%09%09System.out.println(word + %22: %22 + isUniqueChars(word) + %22 %22 + isUniqueChars2(word));%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create uniquechars.java