I am using an Unix environment which has the old JDK 1.3. I am trying to use System.getProperty to read a configuration file where I want to fetch all values that partially matches with a certain key. For example the config file would have -
Have you checked out the Java Tutorial on Properties?
One possible approach is to use Properties#propertyNames to get an Enumeration of the property names available, find the ones that meet your criteria, and get those properties. [ April 24, 2008: Message edited by: Stevi Deter ]
There will always be people who are ahead of the curve, and people who are behind the curve. But knowledge moves the curve. --Bill James