There is a class Note
public class Note implements Parcelable { private String author, title; private Date dateCreate, dateEdit; private ArrayList<String> bodyNote; public Note() { } public Note(String author, String title, Date dateCreate, Date dateEdit, ArrayList<String> bodyNote) { this.author = author; this.title = title; this.dateCreate = dateCreate; this.dateEdit = dateEdit; this.bodyNote = bodyNote; } public Note(Parcel parcel){ String[] data = new String[2]; parcel.readStringArray(data); author = data[0]; title = data[1]; } I created the primitive data for the Parcel constructor, a problem with data of type Date and ArrayList<String> . Tell me how to create them correctly?