Answers for "how to read string using bufferedreader in java"

0

BufferredReader Class

package com.javatpoint;  
import java.io.*;  
public class BufferedReaderExample{    
public static void main(String args[])throws Exception{             
    InputStreamReader r=new InputStreamReader(System.in);    
    BufferedReader br=new BufferedReader(r);            
    System.out.println("Enter your name");    
    String name=br.readLine();    
    System.out.println("Welcome "+name);    
}    
}
Posted by: Guest on October-09-2020
3

declare bufferedreader java

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Posted by: Guest on February-20-2020

Code answers related to "how to read string using bufferedreader in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language