Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer both of them and I will give a thumbs up What does the following code print out? Map map = new HashMap ();

please answer both of them and I will give a thumbs up
image text in transcribed
image text in transcribed
What does the following code print out? Map map = new HashMap(); map.put("123", "Smith"); map.put("Jane", "123"); map.put("123", "Yao"); map.put("Jack", "123"); System.out.println(map.get("123")); Smith Yao O Jane O Jack Smith Yao QUESTION 32 What does the following code print out? TreeSet set = new TreeSet(); set.add("Red"); set.add("Yellow"); set.add("Green"); set.add("Blue"); System.out.println(set.first()); O Green O Red Blue O Yellow O Undecided

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

More Books

Students also viewed these Databases questions