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: Generalized Linked Lists

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Thanked 0 Times in 0 Posts

    Post Generalized Linked Lists

    I have to implement polynomial by generalized linked lists in java , please help me with the algorithm of polynomial representation using generalized linked list , Please

    P(x,y,z) = x10y3z2+2x8y3z2+3x8y2z2+x4y4z+6x3y4z+2yz

    as you see the nodes in the image below

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

    Default Re: Generalized Linked Lists

    java.util.List class actually holds "object reference" as its element. So by default the List can be used as generalized list:
    List<?> myList = ...;
    You can put list A as an element into list B.

Similar Threads

  1. trouble with linked lists
    By akusa in forum What's Wrong With My Code?
    Replies: 7
    Last Post: April 14th, 2013, 08:51 PM
  2. Linked Lists and Nodes
    By tomlisi92 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: March 22nd, 2013, 05:07 AM
  3. [SOLVED] Linked Lists
    By lieles in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 6th, 2011, 07:39 AM
  4. Linked Lists
    By Jnoobs in forum Java Theory & Questions
    Replies: 1
    Last Post: October 23rd, 2010, 04:09 PM
  5. Problems in linked lists
    By Hotzero in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 5th, 2010, 09:25 AM