I know arrays in java is important, but Where can i use it ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I know arrays in java is important, but Where can i use it ?

11th Sep 2016, 10:41 PM
saud algarni
saud algarni - avatar
3 Answers
+ 2
Arrays are great for storing data that you can use in other parts of your program. e.g Say your program logged guests on a guest list by name. Now using a variable for each guest would be impractical but a String array of guest names would be ideal.
11th Sep 2016, 10:53 PM
Alex Wood
Alex Wood - avatar
+ 1
It can be used when storing a large number of values and you don't want to use large no of variables to store individual values.
13th Sep 2016, 12:10 PM
ASHISH
ASHISH - avatar
0
it is the simple way of storing Large amounts of data without repeating or doing multiple values in each case
17th Sep 2016, 1:23 AM
Lumunye Hisham
Lumunye Hisham - avatar