Input by Scanner
- The Java Scanner class breaks the input into tokens using a delimiter that is whitespace by default.
- It provides many methods to read and parse various primitive values
- Java Scanner class is widely used to parse text for string and primitive types using regular expression
1. To get input from console
2. With delimiter
'Back-End > Java_1' 카테고리의 다른 글
[Java] Input by Console (0) | 2016.08.23 |
---|---|
[Java] Input by BufferedReader (0) | 2016.08.22 |
[Java] This keyword - to refer current class instance variable (0) | 2016.08.05 |
[Java] Static_2 (0) | 2016.07.26 |
[Java] Constructor_2 (0) | 2016.07.26 |