I want to write code to take one intput integer say "n" and arrya of size "n" but I don't want to give all n number of elements in that array. can I do this in java? if yes then how?
(actually I am writing a code for taking one input n and an array of size n and give element to that array in runtime. and want to print the output YES if the number of elements are as same as the size of the array. and print output NO if number of elements given to the array are less then that of the size of the array.)