Guest User

Java input

a guest
Aug 23rd, 2016
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.io.*;
  2.  
  3. class ReadString {
  4.     public static void main( String[] args ) {
  5.         System.out.println("Enter your input: ");
  6.  
  7.         InputStreamReader isr = new InputStreamReader( System.in );
  8.         BufferedReader bufferv= new BufferedReader( isr );
  9.  
  10.         String input = "";
  11.  
  12.         input = buffer.readLine();
  13.         buffer.close();
  14.  
  15.         System.out.println( input );
  16.     }
  17. }
RAW Paste Data