public static void main(String[] args) throws IOException {
        JLinkedListVector alv = new JLinkedListVector();
        double [] arr = {0.5, 1.2, 5.5};

        alv.addAll(arr);
        System.out.println("Записываем вектор alv в символьный поток ");
        Writer d = new PrintWriter(new FileOutputStream("C:\\users\\netcracker\\1.txt"));
        Vectors.writeVector(alv, d);
        OutputStream os = new FileOutputStream("C:\\users\\netcracker\\1.bin");
        System.out.println("Записываем вектор  alv в байтовый поток ");
        Vectors.outputVector(alv, os);


        InputStream is = new FileInputStream("C:\\users\\netcracker\\1.bin");
        System.out.println("Считываем вектор alv2 из байтового потока: ");
        Vector alv2 =  Vectors.inputVector(is);
        for (Object x: alv2) {
            System.out.println(x);
        }

        Reader fr = new FileReader("C:\\users\\netcracker\\1.txt");
        System.out.println("Считываем вектор alv3 из символьного потока: ");
        Vector alv3 =  Vectors.readVector(fr);
        for (Object x: alv3) {
            System.out.println(x);
        }

        ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream("C:\\users\\netcracker\\JlinkedListVector.bin"));
        out.writeObject(alv);
        out.close();

        JLinkedListVector alv4 = new JLinkedListVector();
        try {
            ObjectInputStream in = new ObjectInputStream(new FileInputStream("C:\\users\\netcracker\\JLinkedListVector.bin"));
            alv4 = (JLinkedListVector) in.readObject();
            System.out.println("Десериализуемый объект: ");
            for (Object x: alv4) {
                System.out.println(x);
            }
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }