I have the following class:
public final class FileNames
{
private FileNames()
{}
public static final String A = "a.csv";
public static final String B = "b.csv";
public static final String C = "123.csv";
...
}
Now I want to get all String values from the above, somewhere in a different class.Output can be as a String array or ArrayList Or any other Collection. I am using jdk 1.7. No clue how to proceed with this as the list of Strings can be increased,i.e. may add "D","E" etc..