backup
This commit is contained in:
21
4/Array1.~ava
Normal file
21
4/Array1.~ava
Normal file
@@ -0,0 +1,21 @@
|
||||
import java.util.Arrays;
|
||||
public class Array1 {
|
||||
public static void main(String args[]) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
public static void striechen() {
|
||||
for (int i = 0; i < 50; i++) {
|
||||
System.out.print("-");
|
||||
}
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user