title: How to detect a usb drive in Java
body: <p>I would like to know how to detect a usb drive. I have already read <a href="https://stackoverflow.com/questions/3831825/detect-usb-drive-in-java/%22this%20post%22">this post</a> but I am interested in knowing if we can just use <code>java.io.*;</code> to check for the usb drive. The post that i have read up, does kind of explain how to use <code>java.io.*;</code> but I didn't quite understand. If someone could provide an example, that would be great. Thank you.</p>