@@ -0,0 +1,1413 @@
+/*%0A  To implement an algorithms to determine whether given string has unique characters %0A  or not.%0A */%0Apackage Strings;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0A%0Apublic class UniqueStrings %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        // TODO code application logic here%0A        System.out.println(%22Enter a String :%22);%0A        String str=getString();%0A        if(isUniqueString(str))%0A            System.out.println(%22Given string has unique characters.%22);%0A        else%0A            System.out.println(%22Given string doesn't have unique character%22);%0A    %7D%0A    //--------------------------------------------------------------------------%0A    public static String getString() throws IOException%7B%0A        InputStreamReader isr=new InputStreamReader(System.in);%0A        BufferedReader br=new BufferedReader(isr);%0A        String s=br.readLine();%0A        return s;%0A    %7D%0A    //--------------------------------------------------------------------------%0A    public static boolean isUniqueString(String str)%7B%0A        boolean%5B%5D char_set=new boolean%5B256%5D;%0A        for(int i=0;i%3Cstr.length();i++)%7B%0A            char val=str.charAt(i);%0A            if(char_set%5Bval%5D)  %0A                return false;%0A            char_set%5Bval%5D=true;%0A        %7D%0A        return true;%0A    %7D%0A    //--------------------------------------------------------------------------%0A%7D%0A

Algorithm to determine whether string has unique characters ot not