try (BufferedReader br = new BufferedReader(new FileReader ("textfile.txt"))) {
String line;
while ((line = br.readLine()) != null) {
// Print the content on the console
System.out.println(line);
}
}
String line;
while ((line = br.readLine()) != null) {
// Print the content on the console
System.out.println(line);
}
}
'Android' 카테고리의 다른 글
webview vs customtabs (0) | 2017.09.14 |
---|---|
notification lib (0) | 2017.09.14 |
reverse recyclerview (0) | 2017.09.14 |
Android O 변경사항 (0) | 2017.07.31 |
코틀린 Reflect (0) | 2017.07.28 |