Results 1 to 6 of 6
  1. #1
    mailboxo71 is offline Member
    Join Date
    Jan 2011
    Posts
    7
    Rep Power
    0

    Default Newbie need help w/ Java code :)

    I have an array NSArray of size N in which every element (NSNumber) is between 1 and N. I need to write a method, (NSArray*)removeDuplicates, that returns the array without any duplicates.

  2. #2
    user0 is offline Senior Member
    Join Date
    Dec 2010
    Posts
    100
    Rep Power
    0

    Default

    Quote Originally Posted by mailboxo71 View Post
    I have an array NSArray of size N in which every element (NSNumber) is between 1 and N. I need to write a method, (NSArray*)removeDuplicates, that returns the array without any duplicates.
    So what is your question? Have you had a go at this?
    --user0--

  3. #3
    gcalvin is offline Senior Member
    Join Date
    Mar 2010
    Posts
    953
    Rep Power
    5

    Default

    Quote Originally Posted by mailboxo71 View Post
    I have an array NSArray of size N in which every element (NSNumber) is between 1 and N. I need to write a method, (NSArray*)removeDuplicates, that returns the array without any duplicates.
    Are you sure you mean to be posting in a Java forum? This looks like an Objective C question to me.

    -Gary-

  4. #4
    mailboxo71 is offline Member
    Join Date
    Jan 2011
    Posts
    7
    Rep Power
    0

    Default

    Yes, actually, I am trying to convert Objective C code to Java

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    I need to write a method, (NSArray*)removeDuplicates, that returns the array without any duplicates.
    Awesome! I need to pay my water bill, do some laundry, and play some minecraft.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,455
    Rep Power
    20

Similar Threads

  1. Newbie iN java and need some help indeed!!
    By davexc in forum Java Applets
    Replies: 1
    Last Post: 07-13-2009, 06:34 PM
  2. [newbie] messed up code
    By jon80 in forum New To Java
    Replies: 2
    Last Post: 05-31-2009, 05:29 PM
  3. I'm a Java web dev newbie - where to start?
    By hapax in forum New To Java
    Replies: 2
    Last Post: 08-01-2008, 07:34 PM
  4. 'm a newbie of java
    By ilysony in forum Introductions
    Replies: 7
    Last Post: 07-21-2008, 04:54 AM
  5. Help, java newbie
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •