Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excelファイルを読み取るコードがありますがRow、実装したいときにクラスのタイプがわかりません。
Row
誰?ありがとうございました!そして、私はイテレータしかできませんか?foreach がありませんか?
その写真:
a を返す iterator メソッドは、org.apache.poi.ss.usermodel.Rowバージョン 3.0.x から 3.7 の間にライブラリに追加されたため、バージョン 2.5.1 では使用できなくなります。コード例よりも古いライブラリを使用しているようです。ライブラリをアップグレードするか (潜在的なノックオン効果がある場合)、または古いライブラリがこれらの機能を公開していたスタイルでコーディングする必要があります。
org.apache.poi.ss.usermodel.Row