That is why working with Collections is by far the better option. But when you are a poor 1st year student you get stuck with silly assignments doing a kludge with an array.
Type: Posts; User: Junky
That is why working with Collections is by far the better option. But when you are a poor 1st year student you get stuck with silly assignments doing a kludge with an array.
Yeah that is what I meant by my first suggestion but I didn't word it very well. Thanks for the clarification Norm.
The simplest way would be to use Sets but I assume you are not allowed to use them either.
You could create a 3rd array and only add a value to it if it is not present in either of the first 2...