add Strings and integers to Collection : <p>i have implemented a interface and now i have to implement a method, where i have to add Strings and Integers into Collections.I tried c.add but it don´t work. Any ideas how i could do that?</p>

<p>Kind Regards.<br>
E.C</p>

<pre><code>public class AnswerList implements AnswerCollection {

private Collections c;

/* add String answer and mode to collection of answers and modes */
public boolean addAnswer(String word, int mode) {
    if(mode == LearnGUI.SOURCE_GIVEN){
        c.add(word);
        c.add(mode);
        return true;
    } else{
        return false;
    }
}
</code></pre>
