• Post Reply Bookmark Topic Watch Topic
  • New Topic

Preferences being overwritten  RSS feed

 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Anayonkar Shivalkar
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!