boolean removedlNodes = false;
what is the point setting this type boolean = false?


Nodes = Nodes | NodesWithText(text);
what does this " | " means here ?


thanks in advance

It is known as bitwise OR.

boolean removedlNodes = false;
what is the point setting this type boolean = false?


Nodes = Nodes | NodesWithText(text);
what does this " | " means here ?


thanks in advance

the main point is that we are assigning the default value to the boolean variable removedNodes so that when the program executes and there are any removed nodes then this var will be set to true otherwise false.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.