local drives

i want to write a program but i should know the local disk drives in the computer ( c:, d: ...)is there a method for it ?please help!!!thank you .
[181 byte] By [98028140] at [2007-9-26 3:07:09]
# 1
No simple way AFAIK. The whole concept of local drives is pretty non-portable, thinking of how Linux/Unix maps all drives into the same directory tree.
SolarOfBAUD at 2007-6-29 11:10:38 > top of Java-index,Core,Core APIs...
# 2
Did you have a look at File.listRoots() ?
dgibou at 2007-6-29 11:10:38 > top of Java-index,Core,Core APIs...
# 3
i am using jdk 1.2 and there is not such a method in it
98028140 at 2007-6-29 11:10:38 > top of Java-index,Core,Core APIs...
# 4
I'm using 1.3. However, quoting the API doc: since 1.2 !
dgibou at 2007-6-29 11:10:38 > top of Java-index,Core,Core APIs...