menue toString wieder hergestellt
This commit is contained in:
		@@ -60,14 +60,24 @@ public class Menu {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * The method toString() returns a String formated to save in a File
 | 
			
		||||
     * The method format() returns a String formated to save in a File
 | 
			
		||||
     *
 | 
			
		||||
     * @return a String with dish, sideDish, list of ingredients and the typ of the menu
 | 
			
		||||
     * @author Madeleine Vigier, Felix Wöstemeyer
 | 
			
		||||
     * @author Felix Wöstemeyer
 | 
			
		||||
     */
 | 
			
		||||
    public String format() {
 | 
			
		||||
        return date + ";" + dish + ";" + sideDish + ";" + type + ";" + ingredients;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * The method toString() returns fomated dishdata
 | 
			
		||||
     * @return a String with dish, sideDish, list of ingredients and the typ of the menu
 | 
			
		||||
     * @author Madeleine Vigier
 | 
			
		||||
     */
 | 
			
		||||
    @Override
 | 
			
		||||
    public String toString() {
 | 
			
		||||
        return date+";"+dish+";"+sideDish+";"+type+";"+ingredients;
 | 
			
		||||
        return dish + '\n'
 | 
			
		||||
                + sideDish + '\n'
 | 
			
		||||
                + type + '\n'
 | 
			
		||||
                + ingredients;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user