i am trying to add new elementes to my arraylist but it shows er*or : I am trying to add a new element into my arraylist but it shows er*or and I do not know why.
I have tried to change it but the error does not go away. I cannot think of saomething else.Plese help me if you want to fix it.
this is my code:

    //main class
    import java.util.ArrayList;
    
    public class Ticket {
    
        static ArrayList<T> arrayticket = new ArrayList <T>();   //T for Ticket( Generic Type)
    public static void main(String[] args) {
    
     BuyTicket ticket1 = new BuyTicket();  
                    ticket1.BuyaTicket();
    }
    
    class T {
        // instance variables
        private String type;
        private int RoutesOrDays;
        
        private String kind;
        private String name;
        private String email;
        
        private int TicketCode;
        private String ExpirationDate;
        
       
        
    
        //constructor
        public T(String type, int RoutesOrDays, String kind, String name, String email, int TicketCode, String ExpirationDate) {
            this.type = type;
            this.RoutesOrDays = RoutesOrDays;
            this.kind = kind;
            name = " ";
            email = " ";
            TicketCode = 0;
            ExpirationDate = " ";
        }
    //++setters aand getters
    
    }
    
    public class BuyTicket extends MyInterface {
    
    //METHOD
        int BuyaTicket() {
    Save save_dataA = new Save();
                                save_dataA.Person3(type, hostOfRoutes, kind); 
         }
    } 
    
    
    public class SaveData extends T {
    private String name;
        private String email;
        private int code;
    
        static AtomicInteger codeSequence = new AtomicInteger();  //Creates a new AtomicInteger with initial value 0
        
        //contructor
        public SaveData(String name, String email, int code ) {
            
            name =" ";
            email =" ";
            this.code = codeSequence.incrementAndGet();  //Atomically increments by one the current value.
            
        }
    
        //contructor of super 
        public SaveData(String type, int RoutesOrDays, String kind, String name, String email, int TicketCode, String ExpirationDate) {
            super(type, RoutesOrDays, kind, name, email, TicketCode, ExpirationDate);
        }
    
        void Person3(String type, int RoutesOrDays, String kind){    
            System.out.println("Type your full name.");
            String name = input.nextLine();
            System.out.println("Please type your email. ");
            String email = input.nextLine();
            code = codeSequence.incrementAndGet();
    
            arrayticket.add(new T(type, RoutesOrDays, kind, code,email, name));
    //here is the er*or
        }


I am very new to java so what can I change in order to fix it???


