title: Type mismatch: cannot convert from Object to List
body: <pre><code> CompanyDAO companyDAO = new CompanyDAO();
   List companyList = companyDAO.getAllCompanyList();
  </code></pre>
  
  <p>MycompanyList contains a data of like this :</p>
  
  <pre><code> [[1, Agastha Medical Center], [2, Agastha Asthma]]
  </code></pre>
  
  <p>Now i want to iterate the values and i want to pass a value of 1 to query but when i am placing this inside of a for loop i am getting </p>
  
  <pre><code>for(int k=0;k&lt;=companyList.size();k++){
  
  List companyId =companyList.get(k);  //  [1, Agastha Medical Center]  for k=0;
  
  Type mismatch: cannot convert from Object to List
  </code></pre>
  
  <p>I need to read value of 1 alone inside of for loop how can i do this ?</p>