I am interested in knowing how to sort a Properties object. When compiling the following lines of code:
Map prop = System.getProperties();
TreeMap tm = new TreeMap(prop);
I get the following error:
Note: E:\Java\src\PropertiesExample.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Please advise.
Map prop = System.getProperties();
TreeMap tm = new TreeMap(prop);
I get the following error:
Note: E:\Java\src\PropertiesExample.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Please advise.