Search:

Type: Posts; User: Blehs

Search: Search took 0.18 seconds.

  1. Replies
    5
    Views
    2,480

    Re: Unchecked conversion error

    LinkedList<Polynomial> list = new LinkedList<Polynomial>();

    I didnt have the underlined part, and thats stopped the warning from appearing whenever i compile. Thnx guys for the help.
  2. Replies
    5
    Views
    2,480

    Re: Unchecked conversion error

    Oh nono thats not what im trying to do.

    681

    So basically I create a polynomial object. Inside each polynomial object is just 1 Linked List. Placed on each index of the linked list is an object...
  3. Replies
    5
    Views
    2,480

    Re: Unchecked conversion error

    Polynomial.java:12: warning: [unchecked] unchecked conversion
    found : java.util.LinkedList
    required: java.util.LinkedList<ListNode>
    LinkedList<ListNode> list = new LinkedList();...
  4. Replies
    5
    Views
    2,480

    Unchecked conversion error

    warning: [unchecked] unchecked conversion

    found: java.util.LinkedList
    requried: java.util.LinkedList<ListNode>

    LinkedList<ListNode> list = new LinkedList<>;

    and it has the ^ sign under...
Results 1 to 4 of 4