Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);    
}    
}  
 
PREVIOUS NEXT
Tagged: #BufferredReader #Class
ADD COMMENT
Topic
Name
5+6 =