So I have come a long way since my first question, kind of feel like I know what I'm doing.
Anyway I have this method here that creates XML elements/values using JAXB. It is set up like:
addXML(String...xml);
which is used like
javabean.addXML("tagname","tagvalue", "tagname2", "tagvalue2", etc..);
Now, often many of these "tag values" are numerical. Further, they may be allocated to varialbes, in which case it would be nice to just type in the variable name in place of "tagvalue" -- but as of now, that first requires a conversion to String.
So, my question, is it possible to create a method that takes a VARIABLE amount of string/double pairs?
i.e.
value1 = 1.0;
value2 = 3.5403;
javabean.addXML("tagname", 1.0, "tagname2", value2, etc...);
Would I need to define some sort of custom arraylist that alternates between strings and doubles and have a variable amount of those lists as arguments?
Thank you,
Ten