Java 获取Enumeration<JarEntry> 变量的大小或长度
要输出"entries"变量的大小或长度,可以使用"Collections.list(Enumeration
Enumeration<JarEntry> entries = jarFile.entries();
List<JarEntry> entryList = Collections.list(entries);
int size = entryList.size();
System.out.println(\"Size of entries: \" + size);
在上述代码中,我们将"entries"转换为一个"List
原文地址: https://www.cveoy.top/t/topic/qanT 著作权归作者所有。请勿转载和采集!