Let's play "Guess the error message"
I's really not that hard:
pd1 = nums;
pd2= nums;
int [] nums = int(split(myString, ','));
You can't assign an array to an int. You can't assign an array before you allocate it to anything.
Hi there I have been trying to create another 2 variables that stores the previous d1 and d2 values in pd1 and pd2
Then, wouldn't:
pd1 = d1;
pd2 = d2;
make a hell of a lot more sense?