Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. public class learn {
  2. public static void main(String args[]) throws IOException
  3. {
  4. BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  5. String S;String S2 ="";
  6. System.out.println("Enter String");
  7. S=br.readLine();
  8.  
  9. for(int i=0;i<S.length();i++){
  10. Boolean check=false;
  11.  
  12. for(int j=i+1;j<S.length();j++)
  13. {
  14.  
  15. if(S.charAt(i)==S.charAt(j)){
  16. check=true;
  17. break;
  18. }
  19. else
  20. S2= S2+S2.concat(String.valueOf(S.charAt(i)));
  21.  
  22. System.out.pr`enter code here`int(S2);
  23.  
  24.  
  25. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement