Code example for LinkedList

Methods: add

0
	 
	private String currentMood;
	private LinkedList<String> moods;
	 
	public CurrentMoodService(){ 
		this.moods = new LinkedList<String>();
		fillMoodsList(); 
	} 
 
    private void fillMoodsList() { 
    	this.moods.add(":)");
    	this.moods.add(":(");
    	this.moods.add(":D");
    	this.moods.add(":X");
    	this.moods.add(":S");
    	this.moods.add(";)");
    	 
    	this.currentMood = ";)";
    }