Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Creates a list that populates sensor combo boxes
- * @param cellNumber The column to get data from
- * @return sensorList Populates the sensor combo box
- */
- public static List setSensorList(Sheet sheet, int cellNumber) {
- int i = 1;
- sensorList.clear();
- // A loop to get data from the column until it hits an empty cell
- do {
- row = sheet.getRow(i);
- cell = row.getCell(cellNumber);
- if (cell != null) {
- sensorList.add(cell.toString());
- System.out.println(cell);
- }
- i++;
- } while (cell != null);
- return sensorList;
- }
Add Comment
Please, Sign In to add comment