From af39b64a9aa8c1fc856d871ca3577c2ea00559e6 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Thu, 9 Apr 2020 09:17:05 +0200 Subject: [PATCH] Lottozahlen sortiert ausgeben --- src/gfn/marc/Lottozahlen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfn/marc/Lottozahlen.java b/src/gfn/marc/Lottozahlen.java index ec86287..fd1b310 100644 --- a/src/gfn/marc/Lottozahlen.java +++ b/src/gfn/marc/Lottozahlen.java @@ -45,6 +45,7 @@ public class Lottozahlen { // Lottozahlen ausgeben System.out.println(); System.out.print("Lottozahlen: "); + Collections.sort(lottozahlen); for (int i = 0; i < lottozahlen.size(); i++) { if (i < lottozahlen.size() - 1) { System.out.print(lottozahlen.get(i) + ", ");