code: public static void validateZip(File file) throws IOException {
      ZipInputStream zipInput = new ZipInputStream(new FileInputStream(file));
      ZipEntry zipEntry = zipInput.getNextEntry();
  
      while (zipEntry != null) {
        zipEntry = zipInput.getNextEntry();
      }
  
      try {
        if (zipInput != null) {
          zipInput.close();
        }
      } catch (IOException e) {
      }
    }
docs: Checks if a Zip is valid navigating through the entries
  
  @param file File to validate
  @throws IOException I/O Error