cin >> (in java)?
BufferedReader stdin = new BufferedReader(new InputStreamReader( System.in ) );
stdin.readLine();
[edited by - Programmer One on March 15, 2003 6:37:44 PM]
stdin.readLine();
[edited by - Programmer One on March 15, 2003 6:37:44 PM]
I think this is what you are looking for, I hope it helps.
import java.io.*;public class inputTest{ public static void main(String args[]) { BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); try { // This is you would read a string from the console String str = console.readLine(); } catch(IOException e){} }}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement