src/main/java/com/billybyte/marketdata/YahooFinanceCsvAbstractGenericQuery.java
public static List<List<String>> createKeyLists(
			Set<String> keySet,
			int maxElementsPerList){
		List<List<String>> ret = new ArrayList<List<String>>();
		List<String> keyList = new ArrayList<String>(keySet);

		for(int i = 0;i<keyList.size();i+=maxElementsPerList){
			List<String> innerList = new ArrayList<String>();
			for(int j = 0;j<maxElementsPerList;j++){
				int index = i + j;
				if(index>=keyList.size())break;
				innerList.add(keyList.get(index));
			}
			ret.add(innerList);
		}
		return ret;

	}
/**
	 * Create lists of keys where each list has up to MAX_GETS_BEFORE_WAIT number
	 *   of symbols.  Use these lists to form stock groups to send to Yahoo
	 * @return
	 */
Create lists of keys where each list has up to MAX_GETS_BEFORE_WAIT number
of symbols.  Use these lists to form stock groups to send to Yahoo
@return
Create lists of keys where each list has up to MAX_GETS_BEFORE_WAIT number of symbols . Use these lists to form stock groups to send to Yahoo @return
public static List<List<String>> createKeyLists(
			Set<String> keySet,
			int maxElementsPerList){
		List<List<String>> ret = new ArrayList<List<String>>();
		List<String> keyList = new ArrayList<String>(keySet);
		for(int i = 0;i<keyList.size();i+=maxElementsPerList){
			List<String> innerList = new ArrayList<String>();
			for(int j = 0;j<maxElementsPerList;j++){
				int index = i + j;
				if(index>=keyList.size())break;
				innerList.add(keyList.get(index));
			}
			ret.add(innerList);
		}
		return ret;
	}
public static List < List < String > > createKeyLists ( Set < String > keySet , int maxElementsPerList ) { List < List < String > > ret = new ArrayList < List < String > > ( ) ; List < String > keyList = new ArrayList < String > ( keySet ) ; for ( int i = 0 ; i < keyList . size ( ) ; i += maxElementsPerList ) { List < String > innerList = new ArrayList < String > ( ) ; for ( int j = 0 ; j < maxElementsPerList ; j ++ ) { int index = i + j ; if ( index >= keyList . size ( ) ) break ; innerList . add ( keyList . get ( index ) ) ; } ret . add ( innerList ) ; } return ret ; }
Create lists of keys where each list has up to MAX_GETS_BEFORE_WAIT number
   of symbols.
Create lists of keys where each list has up to MAX_GETS_BEFORE_WAIT number of symbols .