package com.equals.test;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Circle {
public static void main(String args[]) {
System.out.println("Enter ten numbers : ");
int[] a = new int[10];
Scanner reader = new Scanner(System.in);
for (int i = 0; i < 10; i++) {
a[i] = reader.nextInt();
}
reader.close();
//保留第一个
System.out.println("The first is :"+ a[0]);
System.out.println("The distinct numbers are: ");
Set num = new HashSet();
for(Integer n : a) {
num.add(n);
}
for(Integer n : num) {
System.out.println(n);
}
}
}