22 lines
622 B
Plaintext
22 lines
622 B
Plaintext
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();
|
|
}
|
|
}
|