Question: Java code that takes input and makes it into a hastable result. hastable has a string as key, and linked list as elements. public static

Java code that takes input and makes it into a hastable result.

hastable has a string as key, and linked list as elements.

public static Hashtable> table = new Hashtable<>();

this is input:

# test1 #test test

[common\\f1.txt

(A,aaaa a1 a2 a3

(A,bbbb b1 b2 b3

[common\\f2.txt

(A,cccc c1 c2 c3

hashtable result needs to be:

common\\f1.txt=[aaa, a1, a2, a3, bbbb, b1, b2, b3], [common\\f2.txt =[cccc, c1, c2, c3]

code needs to be able to compile and run to be correct!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!