package test;

import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;

public class test1 {

    public static void main(String[] args) {
    	Map<String,Integer>map = new  HashMap<String,Integer>();
    	String line ="a b cc c d";
    	Scanner sc =new  Scanner(line);
    	while (sc.hasNext()){
    }
    }	
    }
原文地址:https://www.cnblogs.com/Einsten/p/6697622.html