2. Write a java program to create class Student with the following Marks) : States:Id, Name, Location Behaviors: get_Name(), get Id(),get_Location(), set_Location(String newloc), States set_Id(int...


2. Write a java program to create class Student with the following Marks) :


States:Id, Name, Location


Behaviors: get_Name(), get Id(),get_Location(), set_Location(String newloc), States set_Id(int new)


Create main class with name [ Mains ] and implement an ArrayList of type Student and apply the following inside it:


> Add 4 students.


>Add student st2 in location 2.


> Remove student located in location 3.


> Check if st2 existing inside the collection.


> Print out the ArrayList using for each.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here