This site requires JavaScript, please enable it in your browser!
Greenfoot back
roronoa
roronoa wrote ...

2012/10/10

Inputting string

roronoa roronoa

2012/10/10

#
How to input a string? (the c++ direction cin>>)
SPower SPower

2012/10/10

#
// import this
import java.io.*;
// preparing code
InputStreamReader i = new InputStreamReader(System.in);
BufferedReader r = BufferedReader.in();

// the real code:
r.readLine();

// when you're done:
r.close();
You need to login to post a reply.