aspose file tools*
The moose likes Java in General and the fly likes removing duplicates in array ...????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "removing duplicates in array ...?????" Watch "removing duplicates in array ...?????" New topic
Author

removing duplicates in array ...?????

oool las
Greenhorn

Joined: Sep 17, 2002
Posts: 11
urgent please,
how to remove duplicates in an array
thanx.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Create a Set out of the array.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
oool las
Greenhorn

Joined: Sep 17, 2002
Posts: 11
hello Preuss,
can i have source code of it please
because iam week in refering api
thanx.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
from memory, therefore without warranty:

Notice, though, that the sequence of the elements will not be maintained by this solution.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Originally posted by oool las:
hello Preuss,
can i have source code of it please
because iam week in refering api
thanx.

If you are weak in using the API then you absolutely need to work on that. It is impossible to be a Java programmer without being able to read the API. I wouldn't write another line of code until I have figured out how the API works.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: removing duplicates in array ...?????