9. 11. 3. A boolean is being stored and then retrieved from an ArrayList
import java.util.ArrayList;
public class Main { public static void main(String... args) {
ArrayList<Boolean> list = new ArrayList<Boolean>();
list.add(true); boolean flag = list.get(0);
}
}