Hi Belisarius,
Thanks for your prompt reply. I am currently using Java 1.4. If I still want to use Vector, do you suggest I'll have Java 1.5 instead? Or is it more advisable for me to work with ArrayList? Can ArrayList provide me with the same result as I want like the one in Vector?
Actually I want to store each rgb values for a pixel of an image into say a Set so that any rgb with redundant values will be omitted which allow me to count the numbe of colours in the image. I later would like to have access again to these values for further processing.
Your idea(s) are most welcome and indeed needed.
Thanks...