Forums Register Login

Preferences being overwritten

+Pie Number of slices to send: Send
Here is the code....




Here is the output...




Here is what I was expecting....




It appears that ChildNode3 overwrote ChildNode1. Is this expected or is the code implementation wrong?
+Pie Number of slices to send: Send
Hi Tom,

I'm not familiar with Preferences class, but I think line 16 of your PrefTest2 class is overwriting node 1 and node 2.

You may check the code which actually puts node 4 inside node 3 - and similar code can be written to put node 3 inside node 2 (and node 2 inside node 1).
Our first order of business must be this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 531 times.
Similar Threads
How to read properties with no key giving
Preferences.exportSubTree() does not export all xml nodes
Preferences API and Mac (maybe XP also?!) OS, oddity/issue?
Issue w/ accesing file from a Servlet
Working with XML files, using Java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:23:39.