GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

one Dimensional array

daniela rodriguez Spanisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am one Dimensional array, erstellt von daniela rodriguez am 09/05/2019.
Erstellt von
daniela rodriguez · Mai 2019
Aktualisiert
9 Mai 2019
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck