How to get an user input array without knowing its size in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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