★★Java質問・相談スレッド184★★ (371レス)
上
下
前
次
1-
新
132
:
(テテンテンテン MM0e-c/TO)
2023/02/26(日)02:49
ID:F7MFR7BvM(2/2)
調
AA×
>>131
[240|
320
|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
132: (テテンテンテン MM0e-c/TO) [] 2023/02/26(日) 02:49:11.03 ID:F7MFR7BvM >>131 ありがとうございます。 try (Stream<Path> stream = Files.list(Paths.get(path))) { File[] inputFiles = stream.filter(Files::isRegularFile).toArray(File[]::new); Iterator<File> i = Arrays.asList(inputFiles).iterator(); while (i.hasNext()) {}} のように、つなげて?書いてみたのですが Exception in thread "main" java.lang.ArrayStoreException: arraycopy: element type mismatch: can not cast one of the elements of java.lang.Object[] to the type of the destination array, java.io.File とエラーが表示されるので、もう少し調べてみます。 http://mevius.5ch.net/test/read.cgi/tech/1632019965/132
ありがとうございます のようにつなげて?書いてみたのですが とエラーが表示されるのでもう少し調べてみます
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 239 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
ぬこの手
ぬこTOP
0.028s