+ 4

What are arrays used for?

The course outlines how arrays are manipulated, but not how and when to use them.

2nd Nov 2016, 7:29 AM
Robin
10 Antworten
+ 2
arrays are like 'clusters in math'. objects with similar properties banded together and stored in arrays. By this way a program can easily reach them and manipulate, update, delete or create them. for example you can create a 'customer class' in Java. with this class you can create a lot of customer objects and store them in an array. you can easily manipulate, delete or update their properties.
2nd Nov 2016, 11:06 PM
Emrullah ÖZALP
Emrullah ÖZALP - avatar
+ 2
in Ruby they dont have to be from same data-type which you can use for eg. in reference to databases
3rd Nov 2016, 3:30 PM
Kevin Wrona
Kevin Wrona - avatar
+ 1
when you have to store multiple values of same data-type in a single variable
2nd Nov 2016, 11:17 AM
Ajit yadav
Ajit yadav - avatar
+ 1
arrays are meant to create temporary memory for variable.
13th Nov 2016, 11:55 AM
Lloyd Mwaluku
Lloyd Mwaluku - avatar
+ 1
There are many ways to use the arrays. Queues in general, Array of words to be replaced, Array of characters that are not allowed in user's passwords and in, among other utilities. And we use a lot.
25th Nov 2016, 1:44 AM
Élio Severo Junior
Élio Severo Junior - avatar
+ 1
Array is a derived data type. It reduces the code of execution when we include arrays in our program
25th Nov 2016, 4:54 AM
joffie
joffie - avatar
+ 1
An array is just a list of items. The items can be objects, elements, variables' values, etc. You can also create multidimensional arrays ( probably not in Ruby) and matrixes.
20th Dec 2016, 4:12 AM
Matt Roberts
Matt Roberts - avatar
+ 1
an array is a sorted list of items. students = ["Jimmy", "Katie", "Mark", "Veronica"]
22nd Dec 2016, 12:15 PM
[No Name]
[No Name] - avatar
+ 1
to store multiple values to 1 variable
15th Jan 2017, 5:27 PM
smartguy100
smartguy100 - avatar
0
You can use it to store a combination of numbers like a pin code.
5th Jan 2017, 7:25 PM
Clément Legouest
Clément Legouest - avatar