Example 1: Java program to find the unique characters from a given string
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to find unique characters ——————————————————————————————————————————— Enter the string KODINGWINDOW Unique characters KODINGW ——————————————————————————————————————————— kodingwindow@kw:~$
Example 2: Java program to find the unique characters from a given string
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to find unique characters ——————————————————————————————————————————— Enter the string KODINGWINDOW Unique character D Unique character G Unique character I Unique character K Unique character N Unique character O Unique character W ——————————————————————————————————————————— kodingwindow@kw:~$
Advertisement