Created
February 17, 2015 06:09
-
-
Save TheBeachMaster/b9d827245618f00f0f3f to your computer and use it in GitHub Desktop.
Input Stream Reader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.demo.input; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class Main { | |
public static void main(String[] args) throws IOException { | |
// write your code here | |
String line; | |
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); | |
System.out.println("Enter a string of characters"); | |
line=stdin.readLine(); | |
System.out.println("This is what you entered: "+line); | |
System.exit(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment