srinivasboga / Boga_R-D

0 stars 4 forks source link

Issue #30: String : Add a method to find the string count #32

Closed srinivasboga closed 1 month ago

srinivasboga commented 1 month ago

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