code.dreamsense.com

java.util.Scanner

Scanner

import java.util.Scanner;

public class Test {

  static Scanner stringScanner = new Scanner(System.in);

  public static void main(String[] args) {
    System.out.print("> ");

    String in = stringScanner.nextLine();
    System.out.println(in);
  }
}

Kyle Eggleston
kyle@dreamsense.com
Copyright © 2003 - 2020