How to input a string?

Hello, I m new in this..I can do:System.out.println("string_name"); what if I wanted to ask the user to write a string and then do the System.out of the string he wrote? Thanks
[211 byte] By [Krekasa] at [2007-10-2 3:14:07]
# 1
You can either use the Scanner class (in JDK 1.5) or a BufferedReader associated with System.in.
mvantuyla at 2007-7-15 21:41:14 > top of Java-index,Java Essentials,Java Programming...