package com.tazine.io.socket;

import java.util.Scanner;

/**
 * Created by lina on 2018/1/4.
 *
 * @author frank
 * @since 1.0.0
 */
public class Test {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            System.out.println(sc.next());
        }


    }

}

package com.tazine.io.socket;

import java.util.Scanner;

/**
 * Scanner Test
 *
 * @author frank
 * @since 1.0.0
 */
public class Test {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            System.out.println(sc.next());
        }
    }
}

test (codeplay-io) : add the scanner test.