Question: USING ARRAYLIST (Java) Write a Java program to do the following steps using ArrayList class: 1 . Create the folder name on the desktop named
USING ARRAYLIST (Java)
Write a Java program to do the following steps using ArrayList class: 1 . Create the folder name on the desktop named sample as
Ahmed_16J112_ClassActivity5 2. Create a new project named as Ahmed_16J112_CA5
and save in the above desktop folder. 3. Create a controlling class named as ClassActivity5 4. Declare the two ArrayLists for the course names and
course codes. 5. Enter any 3 course names and their course courses codes 6. Display the output as per the sample input-output using
for each loop statement: Sample Input-output:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Enter any 3 course names and their course codes: OOP SAD SQL
ITSE203 ITIS201 ITDB202
Enter course name and its code to change at 2nd position: OOAD CSSE203
After modified, the course names and their course codes:
OOP OOAD SQL ITSE203 CSSE203 ITDB202
Add a new course name with the course code: SAD ITSE201
After adding, all the course names and its course codes are:
OOP OOAD SQL SAD ITSE203 CSSE203 ITDB202 ITSE201
Find the course name to drop the course: OOAD
After dropping, the rest of the course names and course codes are: OOP SQL SAD ITSE203 ITDB202 ITSE201
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
