fill polynomial
This commit is contained in:
parent
734248177e
commit
bca2393662
14
Main.java
14
Main.java
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user