Search:

Type: Posts; User: Blehs

Search: Search took 0.09 seconds.

  1. Replies
    1
    Views
    1,701

    serialVersionUID and abstract stuff

    /*
    * Task 2
    *
    * 1. Implement all the missing methods in MyStack.
    * 2. Implement the MyQueue class using the provided Queue interface.
    * 2a. You should use two stacks (MyStack) to...
  2. Replies
    5
    Views
    2,444

    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.
  3. Replies
    5
    Views
    2,444

    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...
  4. Replies
    5
    Views
    2,444

    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();...
  5. Replies
    5
    Views
    2,444

    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...
  6. Replies
    3
    Views
    2,629

    Re: Ending a method that has no return type

    thank you for your help
  7. Replies
    3
    Views
    2,629

    Ending a method that has no return type

    void setCoefficients(int coef, int power)

    The above is just my method header, so the method takes two integer parameters, is performed by an object and has no return type.

    What i need to know...
Results 1 to 7 of 7