package inicial;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.SortedSet;

public class MetodosColeccionUno {
	public static void main(String[] args) {
		//Asi si
		Collection miCol;
		if(args[0].equals("1")) {
			miCol=new ArrayList();
		}
		else {
			miCol=new HashSet<>();
		}
		miCol.size();
		//asi no
		Collection malEducado=new ArrayList<>();
	}
	
	public Collection dameAlgo(int valor) {
		if(valor==1) {
			return new ArrayList();
		}
		else {
			return new HashSet<>();
		}
	}
}
