null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
30633513
Array
Description
Computer Science Mind Map on Array, created by Tate Johnson on 27/04/2021.
No tags specified
array
computer science
Mind Map by
Tate Johnson
, updated more than 1 year ago
More
Less
Created by
Tate Johnson
over 3 years ago
38
0
0
Resource summary
Array
Very similar to dictionaries in Python
The size of an array can't be change
How to declare/instantiate: elementType[] varName = new elementType[arraySize];
Example:String[] stringHolder = new String[5]
Setting the values of an array: varName[index] = value;
Checking the length: varName.length (no parentheses)
Can also initialize it like this: String[] stringHolder = {value1, value2, value3}
Indexing through an array: for-each loop
Example: for(elementType element: nameofArray)
for(double d1: stringHolder)
Two Dimensional Arrays
Declare: int[][] array2d;
array2d = new int[3][10]
Copying Arrays:
Use a loop to copy the individual elements
use static arraycopy method in System class
arraycopy(sourceArray, sourcePosition, targetArray, targetPosition, length)
Use clone method to copy arrays.
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr
Browse Library