???
package com.javarush.task.task19.task1922;
import java.io.*;
import java.util.*;
/*
Ищем нужные строки
*/
//words.get(0) || words.get(1) || words.get(2)
public class Solution {
public static List<String> words = new ArrayList<String>();
static {
words.add("файл");
words.add("вид");
words.add("В");
}
public static void main(String[] args) throws IOException {
BufferedReader reader1 = new BufferedReader(new InputStreamReader(System.in));
File file = new File(reader1.readLine());
try (BufferedReader reader = new BufferedReader(new FileReader(file))) { //сам себя закроет
reader1.close();
int x = 0;
while (reader.ready()) {
String str = reader.readLine();
List<String> list = new ArrayList<>(Arrays.asList(str.split(" ")));
int count = 0;
for (String s : words) count += Collections.frequency(list, s);
if (count == 2) System.out.println(str);
}
}
}}