Array Aufgaben 5.5.2023

master
jo 2023-05-05 14:58:29 +02:00
parent 0be5f96eb7
commit 8695d81df3
2 changed files with 16 additions and 4 deletions

View File

@ -152,12 +152,13 @@ public class ArrayExperimente
*/
public static int[] arrayUmdrehen(int[] array)
{
for(int i=0; i<array.length; i++)
int[] wendeArray = new int[array.length];
for(int i=0; i<array.length; i++)
{
wendeArray[i] = array[array.length -1-i];
}
int wendeArray = new int[array.length];
return null;
return wendeArray;
}
/**

11
Strings.java Normal file
View File

@ -0,0 +1,11 @@
/**
* Beschreiben Sie hier die Klasse Strings.
*
* @author (Ihr Name)
* @version (eine Versionsnummer oder ein Datum)
*/
public class Strings
{
}