Closed srinivasboga closed 4 weeks ago
Description Objective: We need to implement a method that iterates through list of strings.
Details: The method should utilize Java Streams to efficiently process the list of strings, ensuring that strings are captured and printed.
Acceptance Criteria:
Example Input: input string = "Fear leads to anger; anger leads to hatred; hatred leads to conflict, conflict leads to suffering.";
Example Output: o/p: Fear : 1 hatred : 2 suffering : 1 leads : 4 to : 4 anger : 2 conflict : 2
Description Objective: We need to implement a method that iterates through list of strings.
Details: The method should utilize Java Streams to efficiently process the list of strings, ensuring that strings are captured and printed.
Acceptance Criteria:
Example Input: input string = "Fear leads to anger; anger leads to hatred; hatred leads to conflict, conflict leads to suffering.";
Example Output: o/p: Fear : 1 hatred : 2 suffering : 1 leads : 4 to : 4 anger : 2 conflict : 2