String in java
I have a task and I need programming a small program like this;
The program will count in a string text area how many used the same word.
" A dog run out of home.When dog come back home he saw that there is another dog in home."
In this text how many time word "dog" is used I have to count.But I dont know how can I make this program.I just think that I have to define a variable as this text value.And more I dont know what to do.
Re: String in java
Break the problem up into a series of steps, or smaller problems to work on, and work on one at a time.
What have you tried so far?