return statement ergänzt

This commit is contained in:
Kevin Pfannenstiel 2023-01-31 19:51:00 +01:00
parent 9aa49d7dfe
commit 9750a48d68

View File

@ -385,7 +385,7 @@ public class HelloController {
@FXML @FXML
protected void getLabelValueWithRadio(ActionEvent event) protected ArrayList<String> getLabelValueWithRadio(ActionEvent event)
{ {
chosenMeals = new ArrayList<>(); chosenMeals = new ArrayList<>();
String mainDish; String mainDish;
@ -455,6 +455,8 @@ public class HelloController {
Alert alert = new Alert(Alert.AlertType.INFORMATION); Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setContentText(chosenMeals.toString()); alert.setContentText(chosenMeals.toString());
alert.show(); alert.show();
return chosenMeals;
} }