Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Write a code using the following hints and apply HashMap and its methods get and put for public class CourseInformation (5 marks) (i) Create

. Write a code using the following hints and apply HashMap and its methods get and put for public class CourseInformation (5 marks)

(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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions