@Override public String nextElement(){
  String retValue="";
  for (int i=0; i < m_N; i++) {
    retValue+=" " + m_SplitString[m_CurrentPosition + i];
  }
  m_CurrentPosition++;
  if (m_CurrentPosition + m_N - 1 == m_MaxPosition) {
    m_CurrentPosition=0;
    m_N--;
  }
  return retValue.trim();
}

@ Override public String nextElement ( ) { String retValue = "" ; for ( int i = 0 ; i < m_N ; i ++ ) { retValue += " " + m_SplitString [ m_CurrentPosition + i ] ; } m_CurrentPosition ++ ; if ( m_CurrentPosition + m_N - 1 == m_MaxPosition ) { m_CurrentPosition = 0 ; m_N -- ; } return retValue . trim ( ) ; }
returns n - grams and also ( n - 1 ) - grams and . . . . and 1 - grams .
