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 2 of 2

Thread: Beginner Java Program Help/ txt database search

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Beginner Java Program Help/ txt database search

    Hi all, I am new to java and what I have learned so far I thoroughly enjoy! I am currently stuck on direction for this code I have to write. I am not looking for someone to do the work for me, but I am truly having a problem even getting started. Any help would be awesome!

    Here are the instructions:

    Implement a program to read and search the text database for a furniture store.
    1. Use the following classes:
    o Store
    o Furniture
    Type
    Style
    o Manufacturer
    Address
    2. Use the ArrayList class to hold instances of Furniture and Manufacturer. Be sure to use generics appropriately.
    3. Use a text data file with the following format - which you may extend, and may be extended in the later projects

    All the
    classes should be provided with appropriate:
    o constructors
    o toString implementations
    o additional methods
    o instance variables connecting the class to appropriate instances of other classes
    4. A GUI that will display allow the user to minimally:
    o search on furniture or manufacturer index
    o search on type
    o seach on style
    5. The GUI class(es) should be distinct from the other classes in the program.


    SO... I've written the GUI class, which I can provide (I've also created the other classes but they are practically empty), and here is the database sample text I have
    F:<254>:<sofa>:<Victorian>:<399.99>:<32>
    F:<250>:<chair>:<Victorian>:<799.99>:<32>
    F:<255>:<chair>:<Jacobean>:<1899.99>:<37>
    M:<32>:<Junior LLC>:<10 binary St>:<Binaryville>:<MD>:<20853>:<(301)-123-4567>
    M:<37>:<Macy's Inc>:<8 Spring Lake>:<Old Town>:<MD>:<20906>:<(301)-193-4767>
    M:<38>:<Java Corp>:<19 Duke Pl>:<O Town>:<SC>:<30210>:<(301)-945-3218>

    I'm unclear on what information the classes (Store, Furniture, Manufacturer) should hold and how to link them to the database. Like I said, I'm new to this!


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,166
    My Mood
    Hungover
    Thanks
    141
    Thanked 597 Times in 512 Posts

    Default Re: Beginner Java Program Help/ txt database search

    Recommended reading: How to Program (stuck on homework? READ THIS BEFORE POSTING)
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Java Barcode Program with Oracle database
    By techsing14 in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: December 6th, 2012, 04:19 AM
  2. Issue with beginner program
    By suxen in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 5th, 2011, 08:55 AM
  3. Replies: 3
    Last Post: March 1st, 2011, 01:18 PM
  4. [SOLVED] Search file program
    By righi in forum Java Theory & Questions
    Replies: 4
    Last Post: November 15th, 2010, 11:08 AM
  5. [SOLVED] Java Beginner: Help with methods and returning values (hailstone program)
    By alf in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 14th, 2010, 06:28 PM