@@ -0,0 +1,938 @@
+package cracking_the_coding_interview.arrays_and_strings;%0Aimport cracking_the_coding_interview.arrays_and_strings.UniqueChars;%0A%0A/*%0A%09This class tests class UniqueChars%0A*/%0A%0Aclass TestUniqueChars%7B%0A%0A%09// test method to check if all characters contained in string s are unique%0A%0A%09public static void testString(String s)%7B%0A%09%09%0A%09%09if(UniqueChars.check(s))%0A%09%09%09System.out.println(s+%22: has all unique characters%22);%0A%09%09else%0A%09%09%09System.out.println(s+%22: does not have all unique characters%22);%0A%09%7D%0A%0A%0A%09// Calls testString on several strings%0A%0A%09public static void test()%7B%0A%0A%09%09// Define test strings%0A%09%09String%5B%5D strings = %7B%22java%22,%22programming%22,%22rohit%22,%22a%22,%2281#&=+-/%5C%5C%22,%22khilnani%22,%22abcdefghijklmno_q%22,%22qq%22,%22%22,null%7D;%0A%0A%09%09// test each string%0A%09%09%0A%09%09%09for(String s: strings)%7B%0A%09%09%09%09try%7B%0A%09%09%09%09%09testString(s);%0A%09%09%09%09%7D%09%0A%09%09%09%09catch(NullPointerException e)%7B%0A%09%09%09%09%09System.out.println(e);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%0A%0A%0A%09%7D%0A%0A%0A%09public static void main(String args%5B%5D)%7B%0A%0A%09%09// test strings%0A%09%09test();%0A%0A%0A%09%7D%0A%0A%0A%7D

Add test class for class UniqueChars