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: How Can i put mysql query results into Linked List.

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

    Post How Can i put mysql query results into Linked List.

    Am new in java, i would like to populate a linked list with the results of SELECT*FROM table1 query from Mysql database which has a table called table1 with the following fields

    first_Name
    last_Name
    tel_No
    address
    age

    and print them using System.out.println() but i don't know how.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,260
    Thanks
    176
    Thanked 818 Times in 761 Posts
    Blog Entries
    5

    Default Re: How Can i put mysql query results into Linked List.

    Your question leaves a lot wide open as far as where your skill stands, so it leaves us with little to do but point you to the java tutorials.
    Trail: JDBC(TM) Database Access (The Java™ Tutorials)
    Trail: Collections (The Java™ Tutorials)
    I recommend if you want more defined advice, post an SSCCE describing where you are stuck.

  3. The Following User Says Thank You to copeg For This Useful Post:

    Muhanguzi (June 18th, 2011)

Similar Threads

  1. Problem with Java/MySQL query...
    By RiskyShenanigan in forum JDBC & Databases
    Replies: 2
    Last Post: March 28th, 2011, 03:50 AM
  2. linked list help
    By tjoney in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 3rd, 2011, 05:54 PM
  3. [SOLVED] Linked List Help
    By lieles in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 4th, 2011, 09:32 PM
  4. Help with linked list
    By joecool594 in forum Collections and Generics
    Replies: 3
    Last Post: November 28th, 2010, 11:33 AM
  5. Recursive function based on Linked list
    By rosh72851 in forum Collections and Generics
    Replies: 1
    Last Post: March 9th, 2009, 06:23 PM