idk if it's just me, but I think these requirements and conditions are EXTREMELY confusing
i cannot even test the code, because if won't even compile...
so, please, help?
package com.codegym.task.task31.task3110;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.file.Path;
import java.nio.file.Paths;
public class Archiver {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String fileName = reader.readLine();
String fileToZip = reader.readLine();
Path path = Paths.get(fileName);
Path pathToZip = Paths.get(fileToZip);
System.out.println("Please enter the full path to the archive (don't forget that the file name is also part of the full path!).");
ZipFileManager zipFileManager = new ZipFileManager(path);
System.out.println("Please enter the path to the file to be zipped (don't confuse this with the archive file, which we already entered!).");
zipFileManager.createZip(pathToZip);
}
}