public String lookup(String question)
    {
        String answer = "Nothing";
        int i = 0;
        boolean found = false;
        
        while(i < wordpairs.size() && found == false)
        {
            if(question.equalsIgnoreCase(wordpairs.get(i).getDanishWord()))
            {
                answer = wordpairs.get(i).getEnglishWord();
                found = true;
            }
                
            if(question.equalsIgnoreCase(wordpairs.get(i).getEnglishWord()))
            {
                answer = wordpairs.get(i).getDanishWord();
                found = true;
            }
            i++;
        }
        return answer;
    }