i have to do a java program to perform polynomial operations. i can manage those operations part. but i have a problem when storing the terms of the polynomial in to a linked list.

for example when it is given

polynomial("4 2 5 3 6 0"); // 4x^2+5x^3+6 may be any number of terms

how can i separately insert those terms in pairs to a one linked list.

please help me!