题解 | #合并表记录#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int num=sc.nextInt();
if(num%10==0){
return;
}
LinkedHashSet<Integer> lhs=new LinkedHashSet<Integer>();
while(num/10!=0){
lhs.add(num%10);
num=num/10;
if(num<10){
lhs.add(num);
}
}
Iterator it=lhs.iterator();
while(it.hasNext()){
System.out.print(it.next());
}
}
}