Results 1 to 2 of 2
  1. #1
    bobleny's Avatar
    bobleny is offline Member
    Join Date
    Apr 2008
    Posts
    50
    Rep Power
    0

    Default [SOLVED] If a object equals another object, do they contain the same data?

    This line returns a Course object:
    Java Code:
    student.get("stud" + studView).getCourse(i);
    By setting it equal to object:
    Java Code:
    Course foo = student.get("stud" + studView).getCourse(i);
    What happened? Would foo now contain the same info as the retuning object?
    -- www.firemelt.net --
    Cheer up, the worst has yet to come...

  2. #2
    bobleny's Avatar
    bobleny is offline Member
    Join Date
    Apr 2008
    Posts
    50
    Rep Power
    0

    Default

    I found the problem that I was having. It was in a class file. This problem prompted me to ask you guys the above question. Once I solved the problem I found out that foo does contain the same data as the object returned by student.get("stud" + studView).getCourse(i).

    Sorry to have waisted your time.
    -- www.firemelt.net --
    Cheer up, the worst has yet to come...

Similar Threads

  1. Replies: 2
    Last Post: 11-26-2010, 02:12 AM
  2. Replies: 0
    Last Post: 01-25-2008, 11:13 PM
  3. how to clear the data of an object
    By katie in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 10:50 PM
  4. Creating object of Type Object class
    By venkatv in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 03:33 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
  •