簡體   English   中英

如何編寫程序以從Excel工作表中讀取,從Java中的Excel工作表中寫入

[英]How to write a programme to Read from an excel sheet , write from an excel sheet in java

如何編寫程序以從Excel工作表中讀取,從Java中的Excel工作表中編寫。 通過創建像

名稱,年齡,性別,薪水,職稱。

if ( sal > 5000)
 then update as fresher

if (sal >5000 and < 40000)

then it is lead

if (sal >40000 and <60000)

那是經理。

嘗試查看這篇文章:

什么是在Java中讀取Excel工作表的更好的API-JXL或Apache POI

它將為您提供足夠的信息以開始使用。


您也可以嘗試搜索CSV格式,該格式可以從Excel導入和導出

https://zh.wikipedia.org/wiki/逗號分隔的值

您的問題含糊不清,但據我了解,您可能想要Apache POI之類的東西

使用下面的鏈接,您可以獲取用於在Excel中讀取或寫入數據的兩個代碼。

http://viralpatel.net/blogs/java-read-write-excel-file-apache-poi/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM