bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java Arrays Class

Flash cards

Review the key moves

1/3
Core idea

What is the main idea behind Java Arrays Class?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Order

Put the learning moves in the order that makes the concept easiest to apply.

The length property is a built-in Java property, and does not belong to the Arrays class.
A list of popular methods of the Arrays Class can be found in the table below:
The Java Arrays class (found in java.

The Java Arrays class (found in java.util ), has methods that allow you to manipulate arrays.

Arrays Methods

A list of popular methods of the Arrays Class can be found in the table below:

MethodDescription
compare()Compares two arrays
copyOf()Creates a copy of an array with a new length
deepEquals()Compares two multidimensional arrays to check whether they are deeply equal to each other
equals()Checks if two arrays are equal
fill()Fills an array with a specified value
mismatch()Returns the index position of the first mismatch/conflict between two arrays
sort()Sorts an array in ascending order

Properties

PropertyDescription
lengthReturns the length of an array

The length property is a built-in Java property, and does not belong to the Arrays class.

Previous

Java Output println() Method

Next

Java Arrays. compare() Method