Back to project page Wordjambalaya.
The source code is released under:
GNU General Public License
If you think the Android project Wordjambalaya listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package nz.co.martinpaulo.wordjambalaya; /*from w w w .j av a 2 s.c o m*/ import android.content.Context; import java.util.ArrayList; /** * Created by martin paulo on 29/07/2014. */ public class UnknownWords { private static UnknownWords instance; private Context context; private ArrayList<UnknownWord> unknownWords; private UnknownWords(Context context) { this.context = context; unknownWords = new ArrayList<UnknownWord>(); } public static UnknownWords getInstance(Context context, int numberOfWords) { if (instance == null) { instance = new UnknownWords(context); } for (int i = instance.getWords().size(); i < numberOfWords; i++) { final UnknownWord word = new UnknownWord(); instance.unknownWords.add(word); } return instance; } public ArrayList<UnknownWord> getWords() { return unknownWords; } }