Compare commits
No commits in common. "8e985224f4fcf5abacd23a03a7262859594830fa" and "a3bc3285e68b983b0808f7f06382a8b5a92a0f38" have entirely different histories.
8e985224f4
...
a3bc3285e6
@ -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
|
||||
* @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
|
||||
* @author Madeleine Vigier, Felix Wöstemeyer
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return dish + '\n'
|
||||
+ sideDish + '\n'
|
||||
+ type + '\n'
|
||||
+ ingredients;
|
||||
return date+";"+dish+";"+sideDish+";"+type+";"+ingredients;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user