public
public static void main(String[] args){ int[] array1 = new int[3]; int[] array2 = new int[3]; for(int i =0; i<3;i++) { array1[i] = (int)(Math.random()*10); array2[i] = (int)(Math.random()*10); } for(int i =0; i<3; i++){ System.out.println(array1[i]); System.out.println(array2[i]); } }
public static void main(String[] args){
int[] array1 = new int[3]; int[] array2 = new int[3]; for(int i =0; i<3;i++) { array1[i] = (int)(Math.random()*10); array2[i] = (int)(Math.random()*10); }
int[] array1 = new int[3];
int[] array2 = new int[3];
for(int i =0; i<3;i++) {
array1[i] = (int)(Math.random()*10); array2[i] = (int)(Math.random()*10);
array1[i] = (int)(Math.random()*10);
array2[i] = (int)(Math.random()*10);
}
for(int i =0; i<3; i++){ System.out.println(array1[i]); System.out.println(array2[i]); }
for(int i =0; i<3; i++){
System.out.println(array1[i]); System.out.println(array2[i]);
System.out.println(array1[i]);
System.out.println(array2[i]);
erstellt von Gurschler Michael und Reiterer Thomas