Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7916005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:38:50+00:00 2026-06-03T14:38:50+00:00

BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.in(Standard input stream)- gets the input from keyboard

  • 0
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

System.in(Standard input stream)- gets the input from keyboard in bytes

InputStreamReader: Converts the bytes into Unicode characters/ converts the standard input into reader object to be used with BufferedReader

Finally BufferedReader: Used to read from character input stream(Input stream reader)

String c = br.ReadLine(); — a method used to read characters from input stream and put them in the string in one go not byte by byte.

Is everything above right ? Please correct if anything wrong !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:38:52+00:00Added an answer on June 3, 2026 at 2:38 pm

    Nearly there, but this:

    String c = br.readLine(); — a method used to read characters from input stream and put them in the string in one go not byte by byte.

    It reads characters from the input reader (BufferedReader doesn’t know about streams) and returns a whole line in one go, not character by character. Think of it in layers, and “above” the InputStreamReader layer, the concept of “bytes” doesn’t exist any more.

    Also, note that you can read blocks of characters with a Reader without reading a line: read(char[], int, int) – the point of readLine() is that it will do the line ending detection for you.

    (As noted in comments, it’s also readLine, not ReadLine 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

System.out.print(>> ); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); I would
try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Enter the continent;); String CN =
class Test{ public static void main(String[] cv) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String
String.split() generates a NullPointerException. BufferedReader brs = new BufferedReader(new InputStreamReader(System.in)); String s1; String s2[];
I'm a Java newbie and stuck with this: BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));
int n, k; int count = 0, diff; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Enter the String:); String str = br.readLine();//error: must
I have the following code: BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); System.out.print(Enter: ); String
I currently use: BufferedReader input = new BufferedReader(new FileReader(filename)); Is there a faster way?
I'm attempting to create an infinite stream of strings from readLine calls: import java.io.{BufferedReader,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.