Search:

Type: Posts; User: Junky

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    5,005

    Re: Removing Duplicate Values From an Array

    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.
  2. Replies
    6
    Views
    5,005

    Re: Removing Duplicate Values From 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.
  3. Replies
    6
    Views
    5,005

    Re: Removing Duplicate Values From an Array

    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...
Results 1 to 3 of 3