Can someone help me
The output is right.package com.codegym.task.task18.task1822;
/*
Finding data inside a file
*/
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
FileInputStream fileInputStream = new FileInputStream(reader.readLine());
byte[] bytes = new byte[fileInputStream.available()];
fileInputStream.read(bytes);
//fileInputStream.close();
String s = new String(bytes).replaceAll("\r", "");
String[] lines = s.split(" |\n");
HashMap<Integer, String> map = new HashMap<>();
for (int count = 0; count < lines.length; count += 4) {
int id = Integer.valueOf(lines[count]);
String value = lines[count + 1] + " " + lines[count + 2] + " " + lines[count + 3];
map.put(id, value);
}
int id = Integer.valueOf(args[0]);
for (Map.Entry<Integer, String> pair : map.entrySet()) {
if (id == pair.getKey())
System.out.println(pair.getKey() + " " + pair.getValue());
}
}
}