✅ Custom class arrays, parameters, custom methods.
I am given an integer parameter, a custom class array, getters and setters.
I must find the index of the given parameter, mark that index as null, and return it as true.
4 Replies
So far, I have tried just normally iterating through the array with a for loop and a foreach loop, both give me errors because of the custom class array
can you share the code you have tried and what the expected output should be
the expected output is true if the parameter was found, false if not. If true that index should be changed to null.
i have tried every variation of this i can think of, but i always get an error where the custom type for the array cant be used with int
what is the custom class you are referring to