Is there any way of taking the data from an Excel-document and putting it in a 2-dimensional array using Java? I'm interested in using the data as Strings if it makes any difference.
thanks :)
Is there any way of taking the data from an Excel-document and putting it in a 2-dimensional array using Java? I'm interested in using the data as Strings if it makes any difference.
thanks :)
Use a pure-Java library. There are a few that are mature, although they're not completely bug-free. The best are Apache POI and JExcelAPI. JExcelAPI is pretty old. POI seems to have more support. I've used both.
You can use the COM API through OLE automation and get the data out that way. This is an example of doing it with Java.