public boolean saveCustomer(ArrayList<Customer> customer, Connection con) {

        boolean didItWork = false;
        int tal = 0;
        String SQLString1 = "insert into kunde values(?,?,?,?,?,?,?)";
        String SQLString2 = "select kundeseq.nextval from dual";
        PreparedStatement statement = null;

                   for (int j = 0; j < customer.size(); j++) {
            Customer ctest = customer.get(j);

            if (ctest.getCustomerID()!= 0) {
                tal++;
            }
        }
        
        try {
            statement = con.prepareStatement(SQLString2);
            ResultSet rs = statement.executeQuery();
            if (rs.next()) {
                for (int j = tal; customer.size() > j; j++) {
                    Customer o = customer.get(j);
                    o.setCustomerID(rs.getInt(1));
                }

                statement = con.prepareStatement(SQLString1);
                for (int i = tal; i < customer.size(); i++) {
                    Customer cus = customer.get(i);
                    statement.setInt(1, cus.getCustomerID());
                    statement.setString(2, cus.getName());
                    statement.setString(3, cus.getAddress());
                    statement.setString(4, cus.getZip());
                    statement.setString(5, cus.getTown());
                    statement.setString(6, cus.getEmail());
                    statement.setString(7, cus.getNr());
                    statement.executeQuery();
                    didItWork = true;
                }

            }

        } catch (Exception e) {
            System.out.println("Fejl i OrdreMapper - SaveNewProject");
            e.printStackTrace();
        }
        return didItWork;

    }