"Hi, Amigo. Let me show you how this all works in memory."

Arrays in memory - 1

"What is 345?"

"Just a random number, but it represents the address of a string that contains the word 'Rain'."

"It's a bit more complicated with arrays."

"155,166,177 – these numbers are also random. Do they represent the addresses of the strings to the right?"

"Yes. It's good that you were able to guess that on your own. Note that there is an additional object here – an array with 10 elements."

"That makes perfect sense. Thanks. Seeing truly is believing. Thank you, Rishi."

undefined
7
Task
New Java Syntax, level 7, lesson 2
Locked
Favorite dish
Rename the parameters of the printPersonInfo() method: - firstName to name; - lastName to surname; - favoriteDish to meal; without changing the program's functionality. Leave the variable names in the main() method unchanged.
undefined
7
Task
New Java Syntax, level 7, lesson 2
Locked
The Liverpool 4
The createCrew() method displays the positions and names of the crew members on a spacecraft. To avoid any confusion inside the method, change the names of the createCrew() method's parameters to match the names of the variables passed to the method: - name1 to navigator - name2 to pilot - name3 in
undefined
7
Task
New Java Syntax, level 7, lesson 2
Locked
Correct order
Let's write a utility for working with arrays. The main functionality is ready: the printArray() method displays all the elements of the array on the console. What is left for you is just a trifle: implement the reverseArray() method. It should reverse the order of the elements in the array. The met
undefined
7
Task
New Java Syntax, level 7, lesson 2
Locked
A method for all seasons
It would be nice to have one method for solving all sorts of problems. You have the opportunity to write one: Create 9 more universalMethod() methods. In total, there should be 10 of them. Think of the parameters they should have.