Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Arrays {
- public static void main (String[] args) {
- int[] array1 = new int [20];
- int a=0;
- for(int j = 0;j a++;
- array1[j] = eingabe(A);
- }
- System.out.println("Sie haben folgendes eingegeben:");
- for(int i = array1.length-1;i>=0;i--) {
- System.out.println(array1[i]);
- }
- }
- public static int eingabe(int b){
- System.out.println("Geben Sie Zahl ["+b+"] ein");
- Scanner In=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement