Question: JAVA need help creating polynomial expressions using a LINKED LIST made up of TERM objects that have a coeff, exponent and link to the next
ObjectList Classes // abjectlistNode. java public class objectListNode f private Object info; private ObjectListNode next: /I Default ctor public Objectlist Node ) f info = null; next = null; // One-arg ctor public objectListNode (Object o) into = o; next = null; // Two-arg ctor public ObjectListNode (Object o, objectListNode p) ( next = p; // Sets info fielod public void setInfo (Object o) info o // Returns object in info field public object getInfo) f return info; // Sets next fiold public void setNext (objectListNode p) ( next -pi // Returns object in info field public ObjectListNode getNext) i return next
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
