
package simple;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

class MyClass6
{
    private final List ints = new ArrayList();
    private final List strings = new ArrayList();
    private byte a;
    private boolean b;
    
    public static ArrayList createList() {
        throw new IllegalStateException
            ("Factory method should never be called");
    }
    
    protected void setInts(final List list) {
        if (list != ints) {
            throw new IllegalStateException
                ("Set method called with different list object");
        }
    }
    
    private boolean isPresent() {
        return ints.size() > 0;
    }
    
    private Iterator intsIterator() {
        return ints.iterator();
    }
    
    private void addInt(Object o) {
        ints.add((Integer)o);
    }
    
    private void addString(Object o) {
        strings.add((String)o);
    }
}
