GoConqr has a new look! Let us know what you think.

Mind map

one Dimensional array

daniela rodriguez Spanish

Map content

one Dimensional array

  1. An array is a collection of elements of one specific type in a horizontal fashion.

  2. As far as an array is concerned, one dimension means it has only one value per location or index.

  3. Using Standard Method: int[] a=new int[3];//declaration a[0]=10;//initialization a[1]=20; a[2]=30;

  4. Using String: We declared one-dimensional string array with the elements strings. To print strings from the string array. for i=0 to i<length of the string print string which is at the index str[i].

  5. A one-dimensional array is one of the most basic ways of storing variables and data that are of the same type (int, double, String, etc) in a straight line of memory.

    • They are statically allocated a certain amount of memory when you compile your program based on how large you declare it to be and are unable to be resized later.
    • an Array is a (fixed length) data structures used to store multiple data elements, that share a common name with the same data type. Array is a predefined class present in java
      • An expression can calculate an index number, that must lie between integers 0 (zero) to n-1 (n is the length of the array). A

Information

Description
Mind Map on one Dimensional array, created by daniela rodriguez on 09/05/2019.
Created by
daniela rodriguez · May 2019
Updated
May 9, 2019
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?