package polinoms; public class Main { public static void main(String[] args) { Integer[] arr1 = {1, 2, 3}; //new Integer[3]; Double[] arr2 = {10.0, 20.0, 30.0}; // new Double[3]; Polinom p1 = new Polinom(arr1); System.out.println(p1.toString()); Polinom p2 = new Polinom(arr2); System.out.println(p2.toString()); System.out.println(p1.value(2)); System.out.println(p2.value(1)); Polinom p = p1.add(p2); p = p1.mult(p2); } }