i want to send the information of one array in one class to other class and play with that information with the second class and then take it back to the first one. i dont know how to send that information, please help.
// in Class_A
public int getArrayValue(int index)
{
return arrayName[index];
}
public void setArrayValue(int index, int value)
{
arrayName[index] = value;
}int arrayValue = ((Class_A)class_A_object_name).getArrayValue(index); // get value // work with arrayValue ((Class_A)class_A_object_name).setArrayValue(index, arrayValue); // set value