Java Containers, Scanner

Java Containers, Scanner_第1张图片

Scanner scan=new Scanner("11,         " +
				"22,   33,        44");
		scan.useDelimiter("\\s*,\\s*");
		while(scan.hasNextInt()){
			System.out.println(scan.nextInt());
		}

你可能感兴趣的:(Scanner)