/ Published in: Java

Shows entire way using which input can be taken in java. As such it is a headache to take input in java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import java.io.*; public class ReadString { // prompt the user to enter their name // open up standard input // read the username from the command-line; need to use try/catch with the // readLine() method try { userName = br.readLine(); } } } // end of ReadString class
Comments
