Skip to content

Instantly share code, notes, and snippets.

View ollehallin's full-sized avatar

Olle Hallin ollehallin

  • Stockholm, Sweden
View GitHub Profile
package se.transmode.tnm.server;
import java.util.Scanner;
public class ScannerTest {
public static void main(String[] args) {
System.out.print("Enter items, end with Ctrl-D: ");
System.out.flush();
Scanner scanner = new Scanner(System.in);
while (scanner.hasNext()) {