Code example for Stack

Methods: add

    private void startNavigating(String word, boolean pushHistory) {
        // Push any current word onto the history stack 
        if (!TextUtils.isEmpty(mEntryTitle) && pushHistory) {
        // Start lookup for new word in background 
        new LookupTask().execute(word);
    private class LookupTask extends AsyncTask<String, String, String> {
        protected String doInBackground(String... args) {
            String query = args[0];
            String parsedText = null;
            try { 
                // If query word is null, assume request for random word 
Stop searching for code, let great code find you!  Add Codota to your java IDE