Upload files to "Aufgaben/PTP_1"

This commit is contained in:
2025-07-29 08:25:28 +02:00
parent e55131f032
commit 0c9a984a51
5 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import java.util.Arrays;
public class lottoArray{
public static void main(String args[]){
int lottozahlen[] = {17, 9, 39, 23, 41, 6};
System.out.println("Anzahl Elemente im Array: " + lottozahlen.length);
System.out.println("Komplettes Array: " + Arrays.toString(lottozahlen));
Arrays.sort(lottozahlen);
System.out.println("Komplettes Array: " + Arrays.toString(lottozahlen));
}
}