Scanner cin = new Scanner(System.in); System.out.println("请输入几个数字,并用逗号隔开:"); String inNumber = cin.nextLine();