Input by BufferedReader
1. Reading data from keyboard
- There are many ways to read data from keyboard
1) InputStreamReader
2) Console
3) Scanner
4) DataInputStream etc..
2. InputStreamReader class
- InputStreamReader class can be used to read data from keyboard. It performs two tasks
1) connects to input stream of keyboard
2) converts the byte-oriented stream into character-oriented stream
3. BufferedReader class
- BufferedReader class can be used to read data by line by readLine() method
4. Example
1) Simple
2) User can stop the program
'Back-End > Java_1' 카테고리의 다른 글
[Java] Inheritance in Java (0) | 2016.08.23 |
---|---|
[Java] Input by Console (0) | 2016.08.23 |
[Java] Input by Scanner (0) | 2016.08.18 |
[Java] This keyword - to refer current class instance variable (0) | 2016.08.05 |
[Java] Static_2 (0) | 2016.07.26 |