Hi, If you want to achieve the node from the preference then you need to be use the code provided below:
Code:
import java.util.prefs.Preferences;
public class TestPreference
{
public static void main(String args[]) throws Exception
{
Preferences preference = Preferences.userRoot();
Preferences preference1 = preference.node("TestPreference");
preference1.put("A", "a");
preference1.put("B", "b");
preference1.put("C", "c");
System.out.println("userNodeForPackage: " + Preferences.userNodeForPackage(TestPreference.class));
}
}
Bookmarks