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.


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

Results 1 to 2 of 2

Thread: Extracting data from data base (yes)

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Thanked 0 Times in 0 Posts

    Default Extracting data from data base (yes)

    Hi, I'm newbie here.
    I am doing a research project dealing with Java and database. Suppose I have Table (in mysql) like this:

    ID Name Pt Dd Status
    1 J1 10 3 null
    2 j2 30 4 null

    I want to store the values in database using Java object so it can be manipulated. What do you think of the data structure suitable for this:
    A-Vector of class
    B-Array of class

    or what

    Suppose the class is defined like this:

    public class job {
    String ID;
    String name;
    float pt;
    int dd;
    String status;

    Please, I need help for my research project. Thx all.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: Extracting data from data base (yes)

    I'm not really sure what your question is. But you've marked this as solved, so does that mean you found a solution anyway?
    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. Replies: 1
    Last Post: February 27th, 2012, 09:16 AM
  2. Problem extracting data from file
    By hello_world in forum File I/O & Other I/O Streams
    Replies: 17
    Last Post: August 21st, 2011, 09:35 PM
  3. Replies: 1
    Last Post: June 11th, 2011, 05:39 AM
  4. data base
    By abcdmmkk in forum Member Introductions
    Replies: 1
    Last Post: March 23rd, 2011, 08:57 AM
  5. Simple Data Base.
    By Reese in forum The Cafe
    Replies: 14
    Last Post: August 2nd, 2010, 02:23 PM