int size = input.nextInt();
Here you are asking for input from the user, so when you run the program, input a number twice (you call createArray() twice) and it should display something for you.
Type: Posts; User: newbie
int size = input.nextInt();
Here you are asking for input from the user, so when you run the program, input a number twice (you call createArray() twice) and it should display something for you.