CodeGym /Java Course /Module 1. Java Syntax /Additional lessons for Level

Additional lessons for Level

Module 1. Java Syntax
Level 8 , Lesson 3
Available

In this level, you've taken another very important step in learning Java. You learned more about arrays, which will help you work with huge amounts of information. We dug into what arrays are, what types of arrays there are, and how to interact with them. As we conclude this topic, we suggest that you read a couple of articles that will deepen your knowledge.

Arrays in Java

Keep this material handy, as your personal cheat sheet for arrays. It explains the basics in a simple and straightforward manner. It starts from square one and walks you through what an array is, how an array is declared and created, how an array is initialized, and how to display an array.

Something about arrays

Never mind the title of the article. It would be better named "a lot of things about arrays" rather than "something about arrays". For example, how to initialize them, in a simple and fast way, how arrays are arranged in memory, what two-dimensional arrays are and how to use them to recreate game "Sea Battle".

Arrays class and its use

In this article, you will continue to investigate arrays and learn how you can use the methods of the Arrays class to solve a lot of typical tasks involving arrays. People usually don't write these methods from scratch. Writing them scratch is useful, and you will probably do it yourself. But later you can use the methods of the Arrays class. This is helpful!


8
Task
New Java Syntax, level 8, lesson 3
Locked
Cats are good
Create a Cat object twice. Store each instance in its own variable. The variable names must be different.
8
Task
New Java Syntax, level 8, lesson 3
Locked
Family relations
In the main method, create a Man object and save a reference to it in the variable man. Also, create a Woman object and save a reference to it in the variable woman. Hint: Use the following construct to create a Woman object and assign a reference to that object to the variable woman: VariableType v
8
Task
New Java Syntax, level 8, lesson 3
Locked
Three dogs are a force
Create 3 Dog objects. Store each instance in a separate variable. Give them the names "Max", "Bella", and "Jack".
Comments (6)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Benjamin Joseph Lentine Level 13, Songwon, South Korea
21 July 2024
Finally, a quiz where all the questions are information from the lessons.
Bright Iniabasi Level 9, Nigeria
1 April 2024
I think there are no correct options in question 7. The questions says to select which option can be used to determine the number of columns in a 2-D array. I expected an option like, say, array[0].length, but none was present. I selected the option "array.length" (being the closest to what I thought was right) and I got the question "correct." I understand "array.length" is used only when determining the number of rows in a 2-D array. Am I missing something, or that was a mistake from CodeGym?
PQK Level 6, United States of America, Sweden
6 April 2024
Yup seems like a mistake made by codegym
Romant Level 15, Russia, Russian Federation
12 March 2022
why is it in lesson 9 on arrays??? after the arrays tasks?
abhishe_kira Level 18, India Expert
27 June 2023
So you can do your research on arrays and gain some knowledge after all when you become a programmer you will have to solve your problems by yourself so they are building a habit in you to do it in future.
theblockchainarborist Level 10, United States
13 January 2022
Missing the word "from" in the third from last sentence at the very bottom here. The paragraph it is located in is under the "Arrays class and its use" link.