Results 1 to 2 of 2

Thread: String - Input

  1. #1
    Join Date
    Jun 2002
    Posts
    8

    Unanswered: String - Input

    Hi!

    How can I realize String-input from the console??

  2. #2
    Join Date
    Jun 2002
    Posts
    4
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String line = in.readLine();

    Source : http://java.sun.com/j2se/1.3/docs/ap...eamReader.html

    ~ D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •