Search:

Type: Posts; User: Junky

Search: Search took 0.07 seconds.

  1. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    So a lot of time has been wasted due to you not posting correct information. The ArrayList class has a clone method but you will still have the same issues that I mentioned in reply 15.
  2. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    I thought you said you wanted to make a copy of an array but in your code you are using ArrayLists. make up your mind.
  3. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    It doesn't matter. Simply type the method name and then add your 2 parameters: your array and an int indicating the length of the new ("copy") array.
  4. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    Don't send me private messages. Ask your questions on the forum so everyone can see them and try to help.

    The reason you cannot find any info about the copyOf method in the ArrayList class is...
  5. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    No need to be confused. Ignore william then go back and read replies 10 & 15.
  6. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    I already have and then you come along and confuse the matter by making incorrect and irrelevant posts.
  7. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    William

    The issue is that OP is trying to call the copyOf method in the ArrayList class when that method does not exist. It has nothing to do with a PhoneBookEntry array.
  8. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    WTF does installing netbeans have to do with it?
  9. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    What the heck are you on about? OP has an array that will store PhoneBookEntry objects. There is nothing wrong with that and you are just muddying the waters.
  10. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    One thing you have to get clear is that copying an array does not automatically mean that you will have two unique arrays if objects are involved. Depending upon how you do it, both arrays probably...
  11. Thread: Copying Arrays

    by Junky
    Replies
    30
    Views
    3,603

    Re: Copying Arrays

    Go to the Java API, find the copyOf method, then copy and paste what it says here.
Results 1 to 11 of 11