Increasing the numerical suffix of a variable
I have an XML file and I am reading the XML file using DOM and getting the tag values. I want to increase the indent of the variable to feed the commands and then I need to store them in an array
Element eElement = (Element) nNode;
String COMMAND1 = null;
COMMAND1 = getTagValue("DS_DESCRIPTION", eElement);
I want to enter the commands in COMMAND1, COMMAND2 ...........and proceeding till I have entered all the commands in COMMAND variable
Re: Increasing the numerical suffix of a variable
You could put the values into an array or use a Map. You can not create variable names when the program executes.