Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hi, I'm trying to use the list method in the File class for a program I'm writing. The way my program works is that I have a method which takes a user-chosen directory and lists all the files and directories in that parent directory. I then return the list to my main method. I know that the list method returns an array of strings, so I use an array of strings in my main method and in my private method. But I get gobbledgook when I print out the list. Can anyone plse help me? Thanks in advance. Here is an example of my code: Replies:
|
Sponsored Links
|