Q: Does Java have an operator like sizeof() in C? A: A superficial answer is that Java does not provide anything like C’s sizeof(). However, let’s consider why a Java programmer might occasionally ...
Your definition of a Comment object will be different than mine so I left that class out intentionally. The resulting list of comments will ordered based on depth so that a parent comment will be ...