Determining If a Preference Node Contains a Specific Key
import java.util.prefs.Preferences; public class Main { public static void main(String[] argv) throws Exception { } // Returns true if node contains the specified key; false otherwise. public static boolean contains(Preferences node, String key) { return node.get(key, null) != null; } }