hi i want to know how i can access to elements of arraylist in java? i have this class .
class flight 
{
    public String start;
    public String end;
    public int timethatend ;
    public int timethatstart;
    flight ( int ts , int tf , String s , String e )
    {
        this.start = s;
        this.end =e;
        this.timethatend = tf;
        this.timethatstart = ts;
    }   
}
and i have this arraylist in my main class
ArrayList<flight>list = new ArrayList<flight>();
now i want print the elements of arraylist i use this syntax
System.out.println(list.get(0));
but the out put is this
flight@1f96302 
what should i do?
                                                                           another question how i can change them for example i want change the time of takeoff the first flight.
 
     
    