//Pilate answered, "I'm not a Jew, am I? Your own nation and the chief priests delivered you to me. What have you done?" (John 18:35)
package com.javarush.task.task20.task2003;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
public class Solution {
public static Map properties = new HashMap<>();
public static Properties prop = new Properties();
public static String filName;
public void fillInPropertiesMap() throws Exception {
//implement this method - ÑеализÑйÑе ÑÑÐ¾Ñ Ð¼ÐµÑод
BufferedReader conReader = new BufferedReader(new InputStreamReader(System.in));
filName = conReader.readLine();
conReader.close();
FileInputStream fileInputStream = new FileInputStream (Solution.filName);
load(fileInputStream);
fileInputStream.close();
}
public void save(OutputStream outputStream) throws Exception {
//implement this method - ÑеализÑйÑе ÑÑÐ¾Ñ Ð¼ÐµÑод
prop.clear();
for (Map.Entry pair : properties.entrySet()) {
prop.put (pair.getKey(), pair.getValue());
}
prop.store(outputStream,"");
}
public void load(InputStream inputStream) throws Exception {
//implement this method - ÑеализÑйÑе ÑÑÐ¾Ñ Ð¼ÐµÑод
prop.load(inputStream);
for (Map.Entry