Well, there's virtually no application beyond trivial demonstration that does not use array extensively. Then all applications make use of array .
Although in some cases array is not used directly, but rather within a framework with a similar function with slightly different appointments. Maybe the teacher was talking about it. The string itself is an array character. ArrayList
is another widely used and often preferred type to the pure array , but inside it has an array , and this type is still an array , but allows the convenience of increasing its size when needed.
Most Java methods return an array as a result of their operation. Of course, many also get an array . And I'm talking about the same pure array .
What is an array has already been answered . Summarizing is a way to have multiple variables with a single name, all arranged in sequence and being accessed by an index, so there is a general name and index of which element you are referring to.
One of the greatest advantages of a computer is to compute large volumes of data fast. It is almost impossible to have large volumes of data other than a sequence of similar data.
So you can have a list of clients, points, any values, temperatures, files, miscellaneous words, windows, URLs, soldiers, in short, any object.
A database table is very similar to a 2-dimensional array . You have columns that by itself is still a data stream and has rows with each entry in the table. But it is more common to have an object that simulates the columns and array would be equivalent to the lines.
From the array it is possible to create several data structures sequences.
In general, loops are used to access and manipulate arrays elements.