I am trying to matching total number of records but not able to do it because my one totalcount strong in list type variable and another is getting store in single integer variable.

My Code : 

```
`Base.getdriver().get(Js_constants.DashboardURL);

  List<WebElement>  totaljobs = Base.getdriver().findElements(By.className(Js_constants.TopsJobsactualtotal));
  System.out.println(totaljobs.size()); //OUTPUT 30

   //Integer.parseInt(totaljobs); //THIS IS NOT WORKING..WHY?

  String Topjobscount = Base.getdriver().findElement(By.xpath(Js_constants.Topsjobscount)).getText();
  System.out.println(Topjobscount); //OUTPUT 30
  Integer.parseInt(Topjobscount); 

  //HERE IT IS NOT SUPPORTING CONDITION LIKE THIS.
  if(Topjobscount == (totaljobs.size()))

  {

      System.out.println("Jobs & Count are matching");
      Reporter.log("Jobs & Count are matching");

  }
  else
  {

      System.out.println("Jobs & Count are matching");
      Reporter.log("Jobs & Count are not matching");

  }

  }`

```

I am using **selenium webdriver & Java**. I want to compare both variable count but issue is it does not allow me to convert list type variable to integer.