public class Arraylistexamples {
    public static void main(String[] args) {

        ArrayList<String> betterschedulesthread = new ArrayList<>(Arrays.asList("yea life hasn't been easy. i'm trying to develop a routine.", "yo, definitely.", "wassup! yes, a routine is super important."));

        //part of the dicussions panel within the website; threads/ongoing discussions b/w users
        //get element
        System.out.println(betterschedulesthread.get(1));

        //get size
        System.out.println(betterschedulesthread.size());
        
        //add element
        betterschedulesthread.add("how can you incorporate exercise into your day?");
        System.out.println(betterschedulesthread.get(3));

        //set element
        betterschedulesthread.set(0, "how are you guys!");
        System.out.println(betterschedulesthread.get(0));

        //isempty
        betterschedulesthread.isEmpty();
        boolean answer = betterschedulesthread.isEmpty(); 
        if (answer == true) 
            System.out.println("ArrayList is empty"); 
        else
            System.out.println("ArrayList is not empty"); 

        //remove element
        betterschedulesthread.remove("how can you incorporate exercise into your day?");
        System.out.println(betterschedulesthread.get(3));
    }
}