+ 2
I know arrays in java is important, but Where can i use it ?
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.
+ 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.
0
it is the simple way of storing Large amounts of data without repeating or doing multiple values in each case