在Java语言中,如何列出PC机文件系统中的所有驱动器名?
来源:互联网 发布:淘宝网十字绣回收骗局 编辑:程序博客网 时间:2024/05/23 19:17
<script type="text/javascript">google_ad_client = "pub-8800625213955058";/* 336x280, 创建于 07-11-21 */google_ad_slot = "0989131976";google_ad_width = 336;google_ad_height = 280;//</script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>在Java 2版本中,java.io包中的File类新增加了方法listRoots()可以实现这一功能.