kodejava-util-package/src/main/java/org/kodejava/example/util/PreferencesExample.java
private void printKeys(Preferences pref) {
        System.out.println("PreferencesExample.printKeys");
        try {
            String[] keys = pref.keys();
            for (String key : keys) {
                System.out.println("Key = " + key);
            }
        } catch (BackingStoreException e) {
            e.printStackTrace();
        }
        System.out.println("============================");
    }
/**
     * Print Keys in the preferences node.
     * @param pref Preference node.
     */
Print Keys in the preferences node.
@param pref Preference node.
Print Keys in the preferences node . @param pref Preference node .
private void printKeys(Preferences pref) {
        System.out.println("PreferencesExample.printKeys");
        try {
            String[] keys = pref.keys();
            for (String key : keys) {
                System.out.println("Key = " + key);
            }
        } catch (BackingStoreException e) {
            e.printStackTrace();
        }
        System.out.println("============================");
    }
private void printKeys ( Preferences pref ) { System . out . println ( "PreferencesExample.printKeys" ) ; try { String [ ] keys = pref . keys ( ) ; for ( String key : keys ) { System . out . println ( "Key = " + key ) ; } } catch ( BackingStoreException e ) { e . printStackTrace ( ) ; } System . out . println ( "============================" ) ; }
Print Keys in the preferences node.
Print Keys in the preferences node .