I tried different ways but one condition fails.
package com.codegym.task.task31.task3110;
import java.io.BufferedReader;
import java.io.IOException;
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));
System.out.println("Please enter the full path to the archive");
String enteredPath = reader.readLine();
Path path = Paths.get((enteredPath));
new ZipFileManager<>(path);
System.out.println("Please Enter the path to the file to be zipped");
String fileToZip = reader.readLine();
Path path2 = Paths.get(fileToZip);
ZipFileManager.createZip(path2);
}
}