Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 13:15
Show Gist options
  • Save fermopili/3c442a06c475202fc72d6177a7e364f3 to your computer and use it in GitHub Desktop.
Save fermopili/3c442a06c475202fc72d6177a7e364f3 to your computer and use it in GitHub Desktop.
com.javarush.task.task15.task1525
/*
Файл в статическом блоке
*/
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);
}
}
@fermopili
Copy link
Author

TANKS Anonym0us from JavaRash courses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment