CodeGym /Courses /Java Syntax /Useful links from the Professor – 7

Useful links from the Professor – 7

Java Syntax
Level 7 , Lesson 10
Available
Useful links from the Professor – 7 - 1

"Hello, Amigo, my pupil who is ever progressing from level to level! How do you like the seventh level?"

"It's highly productive, I would say! I've learned a lot about all sorts of structures. About arrays and lists."

"Ha! A lot, you say. You've learned the very basics. Which, by the way, is wonderful. I remember those days, when I sorted my first array... in ascending... oh, well."

"Professor, you're getting distracted again!"

"All right, I'm sorry, Amigo. So arrays, lists... They are useful to you…"

Something about arrays

"Don't look at the name. The article that I'm recommending to you doesn't have 'something about arrays', but 'a lot of things about arrays'. For example, how to initialize them, simply and quickly, how arrays are stored in memory, what two-dimensional arrays are, and how to use them to recreate the 'Battleship' game."

Arrays class and its use

"This article will help you continue to learn about arrays and how you can use the methods of the Arrays class to deal with a lot of typical tasks involving arrays, which are usually written 'by hand'. 'By hand' is also helpful, but you'll do that whether you like it or not. And then you can use Arrays methods later. This is helpful!"

ArrayList class

"Arrays are great, but their fixed size and the inability to add or remove new elements can make programmers grumpy. So, meet ArrayList, an enhanced array—a simple and convenient data structure. Once you've moved from arrays to ArrayLists, you can't go back. I guarantee."

Deleting an element from an ArrayList

"And here's another article that discusses ArrayList further. This time, we'll dwell at length on important operations when working with lists: removing items from the list, and removing items from the list in a loop."

"That's all for today! Go forth and learn, my student."

Comments (10)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Thomas Level 13, Scottsdale, United States
2 January 2022
Code Gym is soooo good ! I just read a new Oracle JAVA ( Sun ; ) book this Fall 2021 which was brutally dull but obviously necessary )) Code Gym has so much Community knowledge shared that also helps me better comprehend APEX code on Salesforce Clouds -- which is a fun cloud beast with heavy UI bits ( think pieces of Spring )
ChrisFromTheHouse Level 20, Kraków, Poland
13 April 2021
what is the advange of array over arraylist? why woud I even use array if it is so limited comparing to arraylist?
MrPreston Level 11, Edinburgh, United Kingdom
16 June 2021
Arrays are lighter on system requirements vs ArrayLists. Remember when you use an ArrayList you are actually using arrays still (ArrayList contains its own Array). If you precisely know the values your program will use then an array may offer performance increases over an ArrayList. You will also note that standard array syntax is neater (slightly) vs arrays.
Shilpa nori Level 34, Rochester, United States
16 January 2021
Great articles. This lesson should have been before the exercises .
irades Level 8, Moscow, Russia
1 August 2020
Thanks Professor! I am loving it!
Yuno Level 8, Bangalore, India
7 July 2020
Amazing! Very concise and clear. Thank you CodeGym
ashgolan Level 8, Ashdod, Israel
31 October 2019
thanks code gym group :)
MaGaby2280 Level 41, Guatemala City, Guatemala
10 October 2019
Great articles! Should have read them before the exercices, would have made my life easier ;o)
Nikolaos Level 22, Vrontados, Greece
24 August 2019
Great articles!!!
Sergei Polakov Level 11, Donets'k, Ukraine
22 April 2019
thanky!