Advertisement
Guest User

фф

a guest
May 5th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. public static void main (String [] args) throws IOException
  2.     {
  3.     BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
  4.         String s = reader.readLine();
  5.  
  6.         ArrayList<Character> Def = new ArrayList<Character>();
  7.         char [] Arr = new char[s.length()];
  8.         s.getChars(0,s.length(), Arr,0);
  9.  
  10.  
  11.  
  12.         for (int i = 0; i < s.length(); i++)
  13.         {
  14.             int counter = 0;
  15.             for (int j = 0; j < s.length(); j++)
  16.             {
  17.                 if (Arr[i]==Arr[j])
  18.                 {
  19.                     counter++;
  20.                 }
  21.             }
  22.             if (counter  == 1 )
  23.             {
  24.                 System.out.println(Arr[i]);
  25.             }
  26.         }
  27.  
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement