File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is.
File strRoot[]=f.listRoots();
That refers to the C-drive in your computer.
thanks but what does '.' mean
The dot refers to the current working directory.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.