I have a fairly simple custom function. It takes two inputs (an int[]
and an int
) and returns an int[]
. It takes the length of the int[]
input, however it gives the error The variable "length" does not exist
Here is all of the code:
int[] Chromatic(int[] converter,int range) {
for(int i = 0; i < length.converter; i++) {
converter[i] = converter[i] % range;
}
return converter;
What is the issue?
Thanks in advance for any and all responces.