making a static reference from non-static method list()
in
Programming Questions
•
6 months ago
I need my program to look into a folder and tell me what files (.txt) are located in it and their names. My research led me to
java.io.File and I found the list() function. So I tried to use it. the code that I tried was
- public String[] test = File.list();
- println(test);
1