Java tutorial
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); } }