Please create a JAVA program.
Posted: Wed Apr 27, 2022 3:50 pm
Please create a JAVA program.
Q2 Write a program to create a hashmap of names and ID numbers as key value pair of your nine best friends. Create keys using a for loop. Sort and display the names based on the ID numbers in descending order. Write an optimized code to sort the values and explain briefly why it is optimized.
Q2 Write a program to create a hashmap of names and ID numbers as key value pair of your nine best friends. Create keys using a for loop. Sort and display the names based on the ID numbers in descending order. Write an optimized code to sort the values and explain briefly why it is optimized.