Question
Screen shot of your programs steps and outputs is necessary for all the Questions. 1. Write a code using the following hints and apply HashMap
Screen shot of your programs steps and outputs is necessary for all the Questions.
1. Write a code using the following hints and apply HashMap
(i) Create a HashMap object called Course to add a key and its value.
//Key is your course name and value is your course code.
(ii) Use put method to map a course name with the course code.
// add any FOUR COURSE NAMES WITH ITS COURSE CODE which are
represented as a String.
(iii) Use get method to find the course code for any one of the course.
// choose a course with your own
***********don't use main method*********************
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started