creating array without declaring the size – java by IT Nursery creating array without declaring the size – java