Lesson 3: Array

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:10 PM on 7/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

46 Terms

1
New cards

Array

A fundamental data structure in Java.

2
New cards

Array

Allows you to store a collection of elements of the same type.

3
New cards

Array

Provides a convenient way to organize and manipulate data.

4
New cards

Array

Stores data as a contiguous block of memory.

5
New cards

One Dimensional Array

A data structure that allows you to store multiple elements of the same type.

6
New cards

One Dimensional Array

Stores elements in a contiguous block of memory.

7
New cards

One Dimensional Array

The simplest form of array.

8
New cards

One Dimensional Array

Provides a convenient way to store and manipulate collections of data.

9
New cards

int[] variable = new int[];

Syntax of an array declaration

10
New cards

Value

The data stored inside an array element.

11
New cards

Index Number

The position of an element inside an array.

12
New cards

Arrays

Used to store many values in one variable.

13
New cards

Arrays

Used to keep data organized.

14
New cards

Arrays

Used to make it easy to loop and process data.

15
New cards

Array Declaration

What do you call this: int[] numbers = new int[5];

16
New cards

Array Initialization

What do you call this: int[] numbers = {1, 2, 3, 4, 5};

17
New cards

Accessing Array Values

Retrieving values stored inside an array.

18
New cards

Accessing Array Values

Uses the index number to get a specific value.

19
New cards

Index

The position of a value in an array.

20
New cards

Index

Always starts from 0.

21
New cards

Using Array with Loop

A method used to process array elements repeatedly.

22
New cards

Using Array with Loop

Allows accessing each element of the array one by one.

23
New cards

Using Array with Loop

Commonly used to display or modify array values.

24
New cards

Using Array with Loop

Helps reduce repetitive code.

25
New cards

Using Array with Loop

Can be done using iterative structures.

26
New cards
  • One Dimensional Array

  • Two Dimensional Array

  • Multi Dimensional Array


These are the three types of Array.

27
New cards

Multi Dimensional Array

An array that contains multiple rows and columns.

28
New cards

Multi Dimensional Array

Forms a grid-like structure.

29
New cards

Multi Dimensional Array

Used to store and manipulate data in tabular format.

30
New cards

Multi-Dimensional Arrays

declaring the array and specifying its dimensions.

31
New cards

Two-Dimensional Array

The most common type of multi-dimensional array.

32
New cards

Two-Dimensional Array

Represents a grid with rows and columns.

33
New cards

Two-Dimensional Array Declaration Syntax

type[][] arrayName = new type[rowSize][columnSize];


34
New cards

Row, Column

What is declared inside the closed brackets in an Array Declaration?
data type[][] variable = new data type[][]

35
New cards
10, 20, 30, 40


What is the output?

<p>What is the output?</p>
36
New cards
Score: 85
Score: 90
Score: 78
Score: 88


What is the output?

<p>What is the output?</p>
37
New cards
Total = 50


What is the output?

<p>What is the output?</p>
38
New cards
Highest number = 45


What is the output?

<p>What is the output?</p>
39
New cards
Lyca
Kayne
Dbezt
Wency


What is the output?

<p>What is the output?</p>
40
New cards

import java.util.Arrays;

The statement that allows a Java program to use the static methods of the built-in Arrays utility class without needing to specify its full package name every time a method is called.

41
New cards

sort()

Sorts an array into ascending order.

42
New cards

variable.length

It is a built-in function in the Array class that gives total number of elements in the array. The . calls the member that does this function in the Array class.

43
New cards

Array Traversal

It is done to access each elements in the array one by one; always done using loop structures.

44
New cards
Apple
Banana
Orange
Mango
Grapes
Pineapple


What is the output?

<p>What is the output?</p>
45
New cards
1 2 3
4 5 6
7 8 9 


What is the output?

<p>What is the output?</p>
46
New cards
Apple Banana Orange
Mango Grapes Pineapple


knowt flashcard image