public static List<Window> windows(List<String> words, int windowSize) {

        List<Window> ret = new ArrayList<>();

        for (int i = 0; i < words.size(); i++)
            ret.add(windowForWordInPosition(windowSize, i, words));


        return ret;
    }
public static List < Window > windows ( List < String > words , int windowSize ) { List < Window > ret = new ArrayList < > ( ) ; for ( int i = 0 ; i < words . size ( ) ; i ++ ) ret . add ( windowForWordInPosition ( windowSize , i , words ) ) ; return ret ; }
Constructs a list of window of size windowSize
@param words the words to  construct windows from
@return the list of windows for the tokenized string