Created
March 19, 2017 13:15
-
-
Save fermopili/3c442a06c475202fc72d6177a7e364f3 to your computer and use it in GitHub Desktop.
com.javarush.task.task15.task1525
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
/* | |
Файл в статическом блоке | |
*/ | |
public class Solution | |
{ | |
public static List<String> lines = new ArrayList<String>(); | |
static | |
{ | |
try | |
{ | |
Files.lines(Paths.get(Statics.FILE_NAME), StandardCharsets.UTF_8).forEach(lines::add); | |
} | |
catch ( IOException e) | |
{ | |
e.printStackTrace(); | |
} | |
} | |
public static void main(String[] args) | |
{ | |
System.out.println(lines); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TANKS Anonym0us from JavaRash courses