the problem is that when reading data from the keyboard using the methods of the Scanner class, it skips lines (Date and Notes). As far as I understand, the '\ n' or '\ 0' character of the end of the line from the previous input is transmitted.
public void add() { Magazine a = new journal(); System.out.println("Add journal"); Scanner sc = new Scanner(System.in); System.out.println("Titre of journal"); String titre= sc.nextLine(); a.setTitre(titre); System.out.println("Price journal"); float prix=sc.nextFloat(); a.setPrix(prix); //袙袨孝 协孝校 System.out.println("Date of Magazine"); date= sc.nextLine(); a.setDate(date); System.out.println("Category of journal"); int category = sc.nextInt(); a.setCategory(category); //袙袨孝 协孝校 System.out.println("Notes of journal"); String notes = sc.nextLine(); a.setNotes(notes); Bibliotheque.GetList().add(a); }