DescriptionObjective:
Implemented a method that iterates through list of strings.
Details: The method is utilizing Java Streams to efficiently process the list of strings, ensuring that strings are captured and printed with count of it.
Acceptance Criteria:
[x] A method filterAndPrintNumbers(List strings) that filters out numeric values from the list and prints them.
[x] Use Java Streams for filtering.
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: Implemented a method that iterates through list of strings.
Details: The method is utilizing Java Streams to efficiently process the list of strings, ensuring that strings are captured and printed with count of it.
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