I'm unsure of how to write a method that given a tree and a sum, return true if there is a path from the root to any node, such that adding up all the values along the path equals the sum. I wrote the same method but with a path from root to leaf. How do I write a methods to see if a path from a root to any node that adds up to the given sum?
Well, no. If you follow Carey's suggestion -- and why wouldn't you have tried it already? -- you'll find that your method never returns true, no matter what tree you give it.
So take my original (terse) reply and find the part of the code which says "this node is a leaf". You've changed the requirements so that doesn't apply, so remove that code. Don't remove any other code.