You can't specify more than one type parameter unfortunately, so you'll have to find a common superclass for your types and use that. An extreme case would be just using Object:
List list = new ArrayList();
Be careful that you will need to cast the result to the specific type that you need if you retrieve an item (to get full functionality, not just the common one):