For me everything can contain only {text(string), numbers, charaters}, so when I've seen Node node; i ve been confused,which type it stores?
It seems you have not yet arrived in object oriented programming.
Whatever object you create, it can store text, number characters and code (method pointers). And it can store references to other objects, which again have text, number, characters and code of their own.
The good news is that Java is strongly typed. So for each variable you can lookup the type in your code and rest assured at runtime it will be that type either. Over time you will learn which types are part of the Java runtime, which of them come from libraries or which of them are from your code.
So spend some time being puzzled but do not give up. It's worth it. :-)
Answer from queeg on Stack OverflowHey I started java recently coming from python. I was taught go create nearly everything from scratch. In java, there is a node class already. Should I make my own node class or use theirs? I want make a Tree node, linklist node and binary tree node. I am confused