Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java class probelm

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java class probelm

    Hi I have this little issue with my program.

    I have a class called Library which has a one to one relation with a class called collection and class collection has one to many relation with a class called Holding which is an array list. Also class library has a one to one relation with a class called Member. What I would like to know and which I don't know how to do is, how can I modify thing inside the array list of books through the member class.

    Any help will be very much appreciated.

    Thanks In Advance


  2. #2
    Junior Member
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java class probelm

    who can help???I have the same problem

  3. #3
    Member
    Join Date
    Apr 2010
    Location
    The Hague, Netherlands
    Posts
    91
    Thanks
    3
    Thanked 10 Times in 10 Posts

    Default Re: Java class probelm

    Hey spikestar and lily11022,

    First of all, welcome to the forum.

    Now to the problem: spike, your whole structure is bad. A library class that's one to one relation with a collection class? I think you need to restart and think it out more clear and better, and because of the bad structure(imho) it's hard to understand how to do things in it.

    Lets approach this problem different. Post your assignment and the code you already have. We can help you from there.

  4. The Following User Says Thank You to Bryan For This Useful Post:

    Json (May 5th, 2010)

  5. #4
    Forum old-timer
    Join Date
    Nov 2008
    Location
    Faversham, Kent, UK
    Posts
    472
    My Mood
    Mellow
    Thanks
    4
    Thanked 58 Times in 54 Posts

    Default Re: Java class probelm

    It would help if you described what this application is trying to achieve - what does it need to do, how would it be used? This way we can discuss an architecture that supports the requirements.

Similar Threads

  1. run java class file from independent of OS
    By starsoheil in forum Java Theory & Questions
    Replies: 6
    Last Post: March 16th, 2010, 08:05 AM
  2. Need help compiling java class files
    By peahead in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 11th, 2010, 09:04 AM
  3. Java Locked Class
    By unstoppable3 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 29th, 2010, 03:17 PM
  4. Probelm in Path and Paths Classes
    By neo_2010 in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: July 14th, 2009, 10:39 AM
  5. [SOLVED] How to call string in another class in java?
    By tazjaime in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 23rd, 2009, 09:31 AM