public static void main(final String[] args) throws Throwable {
		final Preferences config = Preferences.systemNodeForPackage(Example.class);
		System.out.println(config.get("mykey", "my-default-value1"));
		System.out.println(config.get("mykey2", "my-default-value2"));
		System.out.println(config.get("other.key", "my-default-value3"));
		System.out.println(config.get("urlbase", "my-default-value4"));
		System.out.println(config.get("urlsearch", "my-default-value5"));
	}
public static void main(final String[] args) throws Throwable {
		final Preferences config = Preferences.systemNodeForPackage(Example.class);
		System.out.println(config.get("mykey", "my-default-value1"));
		System.out.println(config.get("mykey2", "my-default-value2"));
		System.out.println(config.get("other.key", "my-default-value3"));
		System.out.println(config.get("urlbase", "my-default-value4"));
		System.out.println(config.get("urlsearch", "my-default-value5"));
	}
public static void main ( final String [ ] args ) throws Throwable { final Preferences config = Preferences . systemNodeForPackage ( Example . class ) ; System . out . println ( config . get ( "mykey" , "my-default-value1" ) ) ; System . out . println ( config . get ( "mykey2" , "my-default-value2" ) ) ; System . out . println ( config . get ( "other.key" , "my-default-value3" ) ) ; System . out . println ( config . get ( "urlbase" , "my-default-value4" ) ) ; System . out . println ( config . get ( "urlsearch" , "my-default-value5" ) ) ; }
Simple Test
Simple Test