In one of my method1 i declared an array as element 1.
the same array i want use as input parameter in another method2.
I am doing some operations in method 2 for that array like resizing to 2 elements.
After finishing the operations in method2 then again i am coming to the method1 but my array is still showing as element 1 only.
The code ls like the following.
private void method1
var array1 = new String ;
private void method2(String array1)
var time1 = "time";
var time2 = "time";
var time3 = "time1";
array1[array1.count() - 1] = time1;
if(time1 = time2)
array1[array1.count() - 1] = time3;
So in the above code after resizing the array1 in method2.
I mean after finishing operations in method2 when it comes to method1 it is showing the length as only 1 i mean array.count() is only 1.
Please tell me the possible solution.
I want both elements.
I think you understand the question.
Please let me know if you don't understand question i will explain clearly.
Thanks in advance.