how to create new list code example

Example 1: how to create a list in java

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

class scratch{
    public static void main(String[] args) {
        List<Integer> aList = new ArrayList<>();
        List<Integer> lList = new LinkedList<>();
    }
}

Example 2: creating a list in python

myList = [value,value,value] #note that you can use any amount of value
#you don not have to use value

Example 3: how to create a list in python

#creating a list
create_list = ["apple", "banana", "cherry"]
print(create_list)