The idea is this: there is an array without capacity. The number of elements of the array is entered by the user. Now, you need to make sure that the value of each array is set by the user.
I guess this can be implemented using a for loop. But I do not know how to do the sequential input of the value of each element of the array.
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΠΎΠ±ΡΠ΅ΠΌ ΠΌΠ°ΡΡΠΈΠ²Π°, ΠΊΠ°ΠΊ ΡΠ΅Π»ΠΎΠ΅ ΡΠΈΡΠ»ΠΎ"); int User0 = scan.nextInt(); int [] Int = new int [User0]; System.out.print(Arrays.toString(Int));