Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans?

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago