i was just wondering if there was a method in java that would return the number of occurrences of a letter. for example, if the string was:
String hello = "Hello World";
id want a function that returns the occurrences of the letter "l" and would return an integer value of 3
any suggestions?
thanks
String hello = "Hello World";
id want a function that returns the occurrences of the letter "l" and would return an integer value of 3
any suggestions?
thanks
Comment