请您详细的写一下如下代码的题解 public static void main(String[] args) { // TODO Auto-generated method stub TreeSet treeSet = new TreeSet(); Scanner scanner = new Scanner(System.in); // scanner.useDelimiter("\n"); while (scanner.hasNextInt()) { int i = scanner.nextInt(); if (i == -1) { sc...