Hello everyone, Is there anyway of passing a String array and also an int array through a same static method? If so, how do I do it :) Thank you!
Printable View
Hello everyone, Is there anyway of passing a String array and also an int array through a same static method? If so, how do I do it :) Thank you!
Do you mean like this:
Code :public static void doSomething(String[] strings, int[] integers) { //do something }
Or should the method just accept one parameter?
Code :public static void doSomethingElse(Object[] objects) { //do something else here }
The top line did the trick, thank you very much!!