How to assert if the content of a particular column of CSV file is equal to expected text in Selenium Webdriver

i need to get the data of a particular column of CSV file(im able to achieve this) However i should also be able to verify if the expected result is present in that column and break the loop there when the text is found.

Here is the code for fetching the data of column 1.

CSVReader reader = new CSVReader(new FileReader("path of csv file"));
            String objName = "LoginUsername";
            String[] nextLine;
            while ((nextLine = reader.readNext()) != null) {



Please advise me if i can assert if the string nextLine contains objName value and break the loop once the string is matched.

Thanks in advance!