@API(status=EXPERIMENTAL, since="5.6") public class StringUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static int |
count(String input,
char ch)
Counts the number of times a given char is present in the string.
|
public static int count(String input, char ch)
input
- input stringch
- char to searchCopyright © 1998-2023 Apache Software Foundation. All Rights Reserved.