Compare commits

..

No commits in common. "8e985224f4fcf5abacd23a03a7262859594830fa" and "a3bc3285e68b983b0808f7f06382a8b5a92a0f38" have entirely different histories.

View File

@ -60,24 +60,14 @@ public class Menu {
/** /**
* The method format() returns a String formated to save in a File * The method toString() returns a String formated to save in a File
* *
* @return a String with dish, sideDish, list of ingredients and the typ of the menu * @return a String with dish, sideDish, list of ingredients and the typ of the menu
* @author Felix Wöstemeyer * @author Madeleine Vigier, 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 @Override
public String toString() { public String toString() {
return dish + '\n' return date+";"+dish+";"+sideDish+";"+type+";"+ingredients;
+ sideDish + '\n'
+ type + '\n'
+ ingredients;
} }
}