What are the java applications of one-dimensional and multidimensional arrays? If you could cite codes to understand this topic, it would be perfect.
What are the java applications of one-dimensional and multidimensional arrays? If you could cite codes to understand this topic, it would be perfect.
The most usual application of one-dimensional arrays is to save a set of data consecutively, for example you need to save the names of several people.
String nombres[]={"Julia", "José", "Manuel", "Brenda"};
With the fix if you want to find a name, just go through the array until you find it, otherwise you would use a variable for each name, something that does not work if you have a very large number of names that you should save.
Other applications of the fixes are to make data structures such how.
In the case of Multidimensional array , the most common is to use arrays , which can be used to do matrix operations in mathematical terms: