简体   繁体   中英

What is the best data structure to use to save data from an excel file that will then be used to generate a GUI where the data can be edited?

I am currently creating a program that will take an excel spreadsheet and save the cell data in a 2D array. If a cell is empty then an empty string is used. I then generate a GUI using that data. My GUI needs to have input fields where the data can be extracted and used. The excel spreadsheet has a set amount of columns but can have any amount of rows as well as empty cells.

I was wondering what the best data structure to use to store the data from the excel spreadsheet is that will allow me to edit the data and add new columns/rows.

Thanks.

如果您愿意使用库,则可能想看看Apache POI,而不是重新发明轮子。

假设不考虑加密,为什么不使用简单的.csv文件?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM