I\'m asking the user to enter some numbers between 1 and 100 and assign them into an array. The array size is not initialized since it is dependent on the number of times the us
I think you need use List or classes based on that.
For instance,
ArrayList integers = new ArrayList(); int j; do{ integers.add(int.nextInt()); j++; }while( (integers.get(j-1) >= 1) || (integers.get(j-1) <= 100) );
You could read this article for getting more information about how to use that.