title: How to acess list of files and folders in a zip file in java?
body: <p>I am trying to retrieve a list of folders and files that are in a zipped file but it returns null</p>
  
  <pre><code>File zipDir = new File(strFilePath+".zip");
  
  String[] dirList = zipDir.list();
  </code></pre>
  
  <p>Can anyone please tell me what mistake I am making here or is there any other alternative?</p>