undefunite length of Arrays in java

can we use arrays in java by not defining its size beforehand ie if i dont know how many inputs i will have to take, then cant the array’s size be flexible? if we can, then how is it done??

well You can use ArrayLists, which provides you much more flexibility to change its size…look for java apis fo ArrayList…