Basically I want my code to enable the user to enter x amount of integers (they chose x), then they will then store each of their inputted integer values in my array.
For some reason when I print my array out after all values have been entered:
I get this:
Code:
    Scanner input = new Scanner(System.in);
    System.out.print("How many integers will you enter:");
    int amount = input.nextInt();
    int myArray[] = new int[amount];
    for (int counter = 0; counter < amount; counter ++){
        myArray[counter] = input.nextInt();
    }
    System.out.println(myArray);
Console:
        How many integers will you enter:2
        4
        2
       [I@55f96302
 
     
     
     
    