fill polynomial

This commit is contained in:
Krystian Madra 2018-06-28 00:27:52 +02:00
parent 734248177e
commit bca2393662

View File

@ -39,4 +39,18 @@ public class Main {
//showPoly(polynomial);
}
// wypelnienie wielomianu
public static LinkedList<Integer> fill(String[] str, LinkedList<Integer> polynomial){
for(int i=0; i <str.length; i++) {
polynomial.add(Integer.parseInt(str[i]));
}
return polynomial;
}
public static void showPoly(LinkedList<Integer> poly) {
System.out.println(poly.toString());
}
}