Korrektur der Syntax und Überabeitung der Kommentare

This commit is contained in:
2022-12-19 15:28:14 +01:00
parent 93bf389472
commit 044f64635b
5 changed files with 29 additions and 44 deletions

View File

@@ -24,7 +24,6 @@ public class Data {
*
* @return Arraylist userList
* @author Madeleine Vigier, Sabine Gubitz
* @version 1.3
*/
public ArrayList<User> readUser() {
List<String> rows = getRows();
@@ -51,12 +50,11 @@ public class Data {
*
* @return Arraylist menuelist
* @author Madeleine Vigier, Sabine Gubitz
* @version 1.3
*/
public ArrayList<Menue> readMenue() {
public ArrayList<Menu> readMenu() {
List<String> rows = getRows();
ArrayList<Menue> menueList = new ArrayList<>();
ArrayList<Menu> menuList = new ArrayList<>();
for (String row : rows) {
@@ -165,9 +163,9 @@ public class Data {
}
String end = parts[26]; //endpoint
menueList.add(new Menue(date, dish, sideDish, typ, ingredients));
menuList.add(new Menu(date, dish, sideDish, typ, ingredients));
}
return menueList;
return menuList;
}
@@ -176,7 +174,6 @@ public class Data {
*
* @return Arraylist orderlist
* @author Madeleine Vigier, Sabine Gubitz
* @version 1.2
*/
public ArrayList<Order> readOrder() {
@@ -223,7 +220,6 @@ public class Data {
*
* @return ArrayList rows
* @author Madeleine Vigier
* @version 1.0
*/
private List<String> getRows() {
Path path = Paths.get(pathRead);