In Java I have a java.util.Properties object and I want to obtain another one with the same pairs but keys converted to values and viceversa.
java.util.Properties
If there are c
Something like:
Properties fowards = new Properties(); fowards.load(new FileInputStream("local.properties")); Properties backwards = new Properties(); for (String propertyName : fowards.stringPropertyNames()) { backwards.setProperty(forwards.get(propertyName), propertyName); }