+ 1

How to get an user input array without knowing its size in Java?

If using Arraylists or getting user input in string format and changing to array is possible, can I have the code snippet for that?

6th Sep 2020, 3:04 AM
Gayathri Veeraraghavan
Gayathri Veeraraghavan - avatar
1 Respuesta
+ 1
This will help you. https://www.google.com/amp/s/www.geeksforgeeks.org/how-do-dynamic-arrays-work/amp/ And please, you can do a bit of research on Google about it. Please don't post simple questions like this.
6th Sep 2020, 3:08 AM
Charitra
Charitra - avatar