"Finally! I missed you. Where have you been? Here are some tasks for you."

"Are they interesting?"

"Of course. Very interesting:"

14
Task
New Java Syntax,  level 14lesson 5
Locked
LinkedList and ArrayList
You need to create two lists: a LinkedList and an ArrayList.
14
Task
New Java Syntax,  level 14lesson 5
Locked
10 thousand deletions and insertions
Using an ArrayList and LinkedList, perform 10,000 insertions, deletions, and get and set calls.
14
Task
New Java Syntax,  level 14lesson 5
Locked
Measure how long it takes to perform 10,000 insertions on each list.
Measure how long it takes to perform 10,000 insertions on each list. The getInsertTimeInMs method must return its execution time in milliseconds.
14
Task
New Java Syntax,  level 14lesson 5
Locked
Measure how long it takes to perform 10,000 get and set calls on each list
Measure how long it takes to perform 10,000 get and set calls on each list. The getGetTimeInMs method must return its execution time in milliseconds.
14
Task
New Java Syntax,  level 14lesson 5
Locked
Method quartet
Implement the 4 methods. Each of them should return the list that is best suited for performing the corresponding operations (i.e. the list that can most quickly perform a large number of operations). You don't need to measure anything.
14
Task
New Java Syntax,  level 14lesson 5
Locked
Longest sequence
1. Create a list of numbers. 2. Use the keyboard to add 10 numbers to the list. 3. Display the length of the longest sequence of repeating numbers in the list. Example for the list 2, 4, 4, 4, 8, 8, 9, 12, 12, 14: 3 The value is 3, because the longest sequence of repeating numbers is three fours.