Question: i need a java code please do it in 1 hr I'll give you 5likes please test your code before submitting iti want output screen

Consider a non-empty string instr containing only lower-case alphabets and an array

of strings inarr, containing a collection of words, with its elements separated

i need a java code please do it in 1 hr I'll give you 5likes please test your code before submitting iti want output screen shot also rotate the image if you fine any difficulty

Consider a non-empty string instr containing only lower-case alphabets and an array of strings inarr, containing a collection of words, with its elements separated by (',') comma. There is one-to-one correspondence between the characters of instr and the words in inarr. Identify and print outstr based on the below logic: . For each of the unique characters in instr: o Identify the index firstind of its first occurrence in instr and the list of indices indexlist for the other occurrences, if any o Identify the corresponding string str in inarr at index firstind If the string str is present in inarr across all the identified indices of indexlist and ONLY at these identified indices then the unique character in instr is said to have a special mapped word in inarr Add ONLY those unique character(s) having a special mapped word to outstr in their order of occurrence in instr . If there is no character identified having a special mapped word, assign "NA" in upper case to outstr Input format: First line contains instr Second line contains inarr with its elements separated by (',') comma Read the inputs from standard input stream Java 1 23 4 5 6 7 8 9 10 11 12 13

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code scr... View full answer

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!