for (int i = 0; i < args.length; i++) { try { ZipFile zf = new ZipFile(args[i]); Enumeration e = zf.entries(); while (e.hasMoreElements()) { System.out.println(e.nextElement()); } } catch (IOException e) { System.err.println(e); } }