public static void main(String args[])
{
Test test = new Test();
test.startElement("ABC");
test.startElement("DEF");
test.endElement();
test.removeLastElement();
test.removeLastElement();
}
I forgot to mention, I cant do arr = new ArrayList<String>(); after test.endElement(); as I want to further process this ArrayList and keep adding it to arrOfArr.
Thanks in advance
~