any one is here that explain to me that how to get console input using BufferReader in java and explain me its working briefly.
moaz.amin.37
-12
Junior Poster
Recommended Answers
Jump to PostBufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Type name: "); String name = reader.readLine(); System.out.println("Hello " + name);
System.in is the InputStream associated with the console. You create a BufferedReader using that stream, then you can call its
readLine()
method to get the user's input.
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
moaz.amin.37
-12
Junior Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
moaz.amin.37
-12
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.