package test.reverse.com;
public class TestCF {
public String t(String se){
StringBuffer sb=new StringBuffer(se);
for(int i=0;i<sb.length()-1;i++){
for(int j=i+1;j<sb.length();j++){
if(sb.charAt(i)==sb.charAt(j)){
sb.deleteCharAt(j);
}
}
}
return sb.toString();
}
public static void main(String[] args){
TestCF tcf=new TestCF();
String sr="3434552211789";
String s=tcf.t(sr);
System.out.println(s);
}
//=================================================================
// public static void main(String[] args){
// String s="3434552211789";
// StringBuffer sb= new StringBuffer(s);
// for(int i=0;i<sb.length()-1;i++){
// for(int j=i+1;j<sb.length();j++){
// if(sb.charAt(i)==sb.charAt(j)){
// sb.deleteCharAt(j);
// }
// }
// }
// System.out.println(sb);
//
// }
}