How to put two list of web element in HasMap? : 

Here is the details 
It is selenium List is web elements 
List WebElement header 
List WebElement headerValues
Both List of WebElement contains string values how can I take them in has map and use it to verify if value is present there or not.

I have write below code 
    

    `
    @FindBy(How =How.Xpath,using =“xpath to header”)
    private static List<WebElement> header;
     @FindBy(how =How.Xpath,using =“xpath to headerValue”)
    private static List<WebElement> headerValue;
    Public HasMap<String,String> verifyHeaderAndValue(){
    HasMap<String,String> hedDetails = new HasMap<>();
    for(int I=0; I<hedDetails.size();I++)
    {
    hedDetails.put(header.get(I).getText(),headerValue.get(I).getText());
    }
    return hedDetails;
    }
    `
       