I\'ve written an n-ary tree ADT which works fine. However, I need to store its serialization in a variable a calling class. eg.
DomTree a
Don't use string concatenation in loops. It does not scale.
Use StringBuilder, this does not make new objects all the time, like string concatenation..
void print() { StringBuilder sb = new StringBuilder(); sb.append("hello"); sb.append(" World!"); System.out.println(sb.toString());
}