Computer Science, asked by mam69, 7 months ago

write a programin java to calculate the frequency of a given word in a string​

Answers

Answered by Anonymous
18

Answer:

nput: str = “Geeks For Geeks”

Output:

For 1

Geeks 2

Explanation:

For occurs 1 time and Geeks occurs 2 times in the given string str.

Input: str = “learning to code is learning to create and innovate”

Output:

and 1

code 1

create 1

innovate 1

is 1

learning 2

to 2

Explanation:

The words and, code, create, innovate, is occurs 1 time; and learning, to occurs 2 times in the given string str.

Explanation:

Answered by Anonymous
1

Answer:

hellooo

Explanation:

ans in attachment mate

Attachments:
Similar questions