You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Write a program to demonstrate the knowledge of students in working with Java collection framework. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/assignment4/src/HashStudents.java)
53
+
2. Write a program to demonstrate the knowledge of students in working with Java collection framework. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/FAT-Practice/src/MapsPractice.java)
54
54
> Eg., Assume only a maximum of 3 courses can be registered by a student for week end semester classes. Create a hashmap ‘h1’ with ‘n’ key-value pairs where keys are the names of students and values are the courses registered by them. Create another hashmap ‘h2’ with ‘m’key-value pairs where keys are the names of courses offered for B.Tech and values are the names of faculty handling the courses. Write appropriate code to:
55
55
* Add or remove a student from h1
56
56
* Iterate over the maps and display the key-value pairs stored in them
0 commit comments