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: need help with creating a catalogue class for my java program

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need help with creating a catalogue class for my java program

    I'm new to java and need help with creating a catalogue class for my java program
    this is what i have been asked to do:

    Create a Catalogue class that holds any number of products. Use an ArrayList, to hold
    the products. Write at least methods
    • addAProduct(…) providing a product as parameter
    • getAllProducts() returning an ArrayList (or List)
    • findProduct(…)taking a product code as parameter and returning a product

    i have no clue where to start off and there's so much more that i have to do, if someone could give me an insight to what needs to written then that would be really great!
    Thanks.
    ps. please reply asap i need to complete this soon.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: need help with creating a catalogue class for my java program

    Please don't post duplicate posts. Sorting them out and keeping them straight is a waste of everyone's time.

    Welcome to the forum, and please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers.

    What don't you understand about creating a class with instance variables and methods? What's keeping you from writing?

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: need help with creating a catalogue class for my java program

    @GregBrannon
    Sorry about that this is my first time im using a forum. thanks for that! it was helpful, Although im still unsure of what to highlight in my first message?
    i'm not sure how to start it off, like what i need to write to create the class

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: need help with creating a catalogue class for my java program

    Do you have a textbook? Have you been to a class, taken notes? Writing a class and putting methods in it should have been covered pretty thoroughly. If you need a refresher, check your book, your notes, and the discussion here and here (follow this trail for as long as needed).

Similar Threads

  1. I'm new to java and need help with creating a catalogue class for my java program
    By purple_ninjaa in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 2nd, 2014, 02:10 PM
  2. Help with creating a Program class for a BASIC Interpreter in Java
    By sampsoninc916 in forum Java Theory & Questions
    Replies: 1
    Last Post: February 15th, 2013, 07:04 AM
  3. Creating and implementing class for creating a calendar object
    By kumalh in forum Object Oriented Programming
    Replies: 3
    Last Post: July 29th, 2011, 08:40 AM
  4. Creating program Blackjack - Dr.Java
    By TheUntameable in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 20th, 2010, 12:54 PM