Skip to content
Advertisement

Workbook in java to find all words in sheet starting with “$” in a xlsx file

I’m working on an excel sheet in which I have multiple columns, which holds multiple text values including variables starting with $. I’m writing a Java code using workbook to read xlsx files. Since I have never used it before, may someone tell me how to achive this task using same. My code structure is here:

JavaScript

Some familier ones, please guide me.

Advertisement

Answer

well, you will need iterator to iterate over Row (this also needs .next() ) and iterator to iterate over cell. as you iterate over cell, you get the next cell with .next(), and it should look something like this

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement