app/src/main/java/com/voices/dictionary/Dictionary.java
/**
     * Method to create dictionary with set of words & return the list to display
     *
     * @param mResources
     * @return ArrayList of DictionaryModel
     */
Method to create dictionary with set of words & return the list to display
@param mResources
@return ArrayList of DictionaryModel
Method to create dictionary with set of words & return the list to display @param mResources @return ArrayList of DictionaryModel
public ArrayList<DictionaryModel> createDictionary(Resources mResources) {
        if (mResources != null) {
            String[] dictionary = mResources.getStringArray(R.array.speech_dictionary);
            dictionaryArray = new ArrayList<>();
            for (int i = 0; i < dictionary.length; i++) {
                dictionaryArray.add(new DictionaryModel(dictionary[i], 0));
            }
        }
        return dictionaryArray;
    }
public ArrayList < DictionaryModel > createDictionary ( Resources mResources ) { if ( mResources != null ) { String [ ] dictionary = mResources . getStringArray ( R . array . speech_dictionary ) ; dictionaryArray = new ArrayList < > ( ) ; for ( int i = 0 ; i < dictionary . length ; i ++ ) { dictionaryArray . add ( new DictionaryModel ( dictionary [ i ] , 0 ) ) ; } } return dictionaryArray ; }
Method to create dictionary with set of words & return the list to display
 @param mResources
 @return ArrayList of DictionaryModel
Method to create dictionary with set of words & return the list to display @param mResources @return ArrayList of DictionaryModel