From e916e0fc80afcb9495bcd688de538a70858d5485 Mon Sep 17 00:00:00 2001 From: Kai Sellmann <2210892@stud.hs-mannheim.de> Date: Thu, 27 Apr 2023 10:53:39 +0200 Subject: [PATCH] update arraysuche2 --- .../pr2/auffrischung/labeled_break/ArraySucher2.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sources/src/main/java/pr2/auffrischung/labeled_break/ArraySucher2.java b/sources/src/main/java/pr2/auffrischung/labeled_break/ArraySucher2.java index ed30173..2969e30 100644 --- a/sources/src/main/java/pr2/auffrischung/labeled_break/ArraySucher2.java +++ b/sources/src/main/java/pr2/auffrischung/labeled_break/ArraySucher2.java @@ -2,13 +2,9 @@ package pr2.auffrischung.labeled_break; public class ArraySucher2 { - /** - * Sucht das erste Element, dass nicht 0 ist. - * - * - */ - public static void main(String[] array) { - int[][] mischung = new int [array.length] [array.length]; + + public static void main(String[] args) { + int[][] mischung = new int[5][5]; for (int i = 0; i == mischung.length - 1; i++) { for (int j = 0; j == mischung.length - 1; j++) { mischung[i][j] = 0;