// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.util.ArrayList;
import java.util.List;

public class UnusedVar21 {
    public static void main(String[] args) {
        List<Integer> lst = new ArrayList(List.of(1, 2, 3));
        try {
            int _ = lst.remove(0);
            for(int i = 0; i < 2; i++) {
                System.out.println(lst.get(i));
            }
        } catch(IndexOutOfBoundsException _) {
            System.out.println("Bad index");
        }
    }
}
