This file contains hidden or 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
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Random; | |
| /*Решить задачу подсчета повторяющихся элементов в массиве с помощью HashMap.*/ | |
| public class DuplicateNumbers { | |
| public static void main (String[]args){ | |
This file contains hidden or 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
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.Map.Entry; | |
| import java.util.Random; | |
| //Решить задачу подсчета повторяющихся элементов в HashMap с помощью HashMap. | |
| public class DuplicateNumbers { | |
| public static void main (String[]args){ |
This file contains hidden or 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
| package Monitor2; | |
| import java.lang.InterruptedException; | |
| import java.nio.file.Files; | |
| import java.nio.file.attribute.BasicFileAttributes; | |
| import java.sql.Date; | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; |
This file contains hidden or 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
| package Dictionary; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.ObjectInputStream; | |
| import java.io.ObjectOutputStream; | |
| import java.util.HashMap; |
This file contains hidden or 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
| package Dictionary; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class Dictionary { | |
| private Map <String,String> Dic; | |
This file contains hidden or 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
| package Monitor2; | |
| import java.io.File; | |
| public interface IFileEvents { | |
| void onFileAdded(File path2); | |
| void onFileDeleted(File path2); | |
| void onFileModified(File path2); | |
| } |
This file contains hidden or 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
| package Monitor2; | |
| public interface IFileEvents { | |
| void onFileAdded(String path); | |
| void onFileDeleted(String path); | |
| } |
This file contains hidden or 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
| package SafeCatalog; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.Date; |
This file contains hidden or 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
| package SafeCatalog; | |
| import java.io.BufferedReader; | |
| import java.io.FileInputStream; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class ReadFile { |
This file contains hidden or 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
| package AnyTapeArray; | |
| public class AnyTapeArray <E> { | |
| private E [] arr; | |
| public E getArrIndex(int i){ | |
| return arr[i] ; | |
| } | |
| public void setArr( E [] arr){ |