Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0

    Default Help with Deep Cloning

    Okay I'mn trying to figure out how to deep clone an object here is a link to the code and other info on what im trying to do. basically i am trying to make defensive classes using deep cloning on the objects they make in order to keep the user from editing the objects a second time. Thanks for any input.

    java-forums.org/new-java/12910-cloning-problem-java.html

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Can you describe your approach to solving the problem?
    What techniques are you using to keep the user from editing the objects a second time?

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by jralexander137 View Post
    Okay I'mn trying to figure out how to deep clone an object here is a link to the code and other info on what im trying to do. basically i am trying to make defensive classes using deep cloning on the objects they make in order to keep the user from editing the objects a second time. Thanks for any input.

    java-forums.org/new-java/12910-cloning-problem-java.html
    Can you more clearly explain your question. Are you referring on another thread?

  4. #4
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0

    Default

    I'm supposed to use Deep and Shallow cloning to accomplish this. I am not supposed to edit Main() and I don't see any effect after putting my deep cloning method. Am I going about this the wrong way or missing something?

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0

    Default

    It wouldnt let me post a link Here it is again

    www/java-forums.org/new-java/12910-cloning-problem-java.html

    just take out the slash after the www apparently im not allowed to post links >.>

    all of the code is in that thread.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ok. But why are you start another thread is you don't have a new question to ask. Please don't do that next time, don't ask the same question in multiple sub-forums. Choose the correct one and stick with that.

Similar Threads

  1. deep copying arraylist to add to a list
    By alvations in forum New To Java
    Replies: 13
    Last Post: 10-08-2008, 03:13 PM
  2. Deep Copy Test
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 11:05 PM
  3. Cloning objects
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-04-2008, 09:33 AM
  4. Replies: 0
    Last Post: 12-28-2007, 12:25 PM
  5. Cloning in Java
    By gchalpatirao in forum Advanced Java
    Replies: 0
    Last Post: 08-14-2007, 03:29 PM

Posting Permissions

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