Hello there,
I have a method that does this:
However, when that method is called there's a possibility that doSomeThingWithMultipleIds(
String [] ids) method should take in an array [].
My question is how do I chain or facilitate the doSomeThingWithMultipleIds() to taken in an array?
Would it be something like this:
Right now I am passing in one id but will need to accommodate if it needs multiple ids...
So, how can I create two methods which do this:
(1) Create a method which one takes a single id and another that takes an array of ids.
(2) But the single one just calls the array related method? (Meaning, put a single id in an array, but pass array into the other method call)?
Happy programming!
-James