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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here