(String path, int[] arr)
| 102 | } |
| 103 | |
| 104 | public static void writeIntArrayToFile(String path, int[] arr) throws IOException { |
| 105 | Writer fr = getTextFileWriter(path, false); |
| 106 | for (int i : arr) { |
| 107 | fr.write(Integer.toString(i)); |
| 108 | fr.write('\n'); |
| 109 | } |
| 110 | fr.close(); |
| 111 | } |
| 112 | |
| 113 | public static int[] readIntArrayFromFile(String path) throws FileNotFoundException, IOException { |
| 114 | ArrayDeque<Integer> tmpQueue = new ArrayDeque<>(); |
no test coverage detected