Applications of one-dimensional and multidimensional arrays?

0

What are the java applications of one-dimensional and multidimensional arrays? If you could cite codes to understand this topic, it would be perfect.

    
asked by Stephanie B Bautista 15.03.2017 в 01:16
source

1 answer

1

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.

  • Batteries
  • Colas
  • Lists

In the case of Multidimensional array , the most common is to use arrays , which can be used to do matrix operations in mathematical terms:

  • Sum of matrices
  • Subtraction of matrices
  • Matrix multiplication
  • Determinant of a matrix
  • Resolution of systems of equations
answered by 15.03.2017 / 15:45
source