Question: Write the Java program to implement the following functionality. a . Create a Java Project with the name MyArrayListProject . b . Create a package
Write the Java program to implement the following functionality. a Create a Java Project with the name MyArrayListProject b Create a package with the name myarraylistexamplepackage c Create a class with the name ArrayListExample d Create a String ArrayList to contain the names of scientists. e Add five scientists to the list. f Print the list containing the names of the scientists. g Add another scientist to the fourth place on the list. Note. Remember the index starts from h Print the list containing the names of the scientists. i Remove the scientist from the second place in the list. j Print the list containing the names of the scientists. k Check the list if it contains a particular scientist. l The output of the code is shown below. Write the necessary code to produce this output including the scientist names. m At the top of your files, include comments similar to below The Assignment:
Write the Java program to implement the following functionality.
a Create a Java Project with the name "MyArrayListProject".
b Create a package with the name "myarraylistexamplepackage".
c Create a class with the name "ArrayListExample".
d Create a String ArrayList to contain the names of scientists.
e Add five scientists to the list.
f Print the list containing the names of the scientists.
g Add another scientist to the fourth place on the list. Note. Remember the index starts from
h Print the list containing the names of the scientists.
i Remove the scientist from the second place in the list.
j Print the list containing the names of the scientists.
k Check the list if it contains a particular scientist.
The output of the code is shown below. Write the necessary code to produce this output including the scientist names.
m At the top of your files, include comments similar to below
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
