Prerequisites
Firstly, you need to download the following jar files. Once downloaded, you can import it by right-clicking on the project -> Properties -> Java Build Path -> Libraries -> Add External JARs...
1. Dom4J
2. POI OOXML Schemas
3. POI OOXML
4. Apache POI
5. XmlBeans
Lastly, you need to create the two Excel files with data in it. Please refer the screenshot in output section.
How to compare two Excel sheets using Apache POI
KW.java
Output
What Next?
Selenium TestNG
Advertisement