Apache poi how to get cell coordinates

apache-poi, cell, coordinates, excel, java

Solution

the shortest way to get cell address is:

cell.getAddress().formatAsString()

to get sheet name do the following

cell.getSheet().getSheetName()

Problem

I try to get a cell's coordinates, right now I write next code: ``` for (Row row : sheet) { for(Cell cell : row){ // how to get a cell coordinates? } } ``` How can I get a cell's coordinates (dx1, dx2, dy1, dy2) ?

Original source