tusharsh8860 opened a new pull request, #1545: URL: https://github.com/apache/commons-lang/pull/1545
### Add countMatches methods to ArrayUtils for all array types with tests 1. Implemented countMatches for all primitive arrays (**boolean, byte, char, short, int, long, float, double**) and generic object arrays, This method is especially useful for primitive arrays, where generic collection utilities like Collections.frequency do not apply. 2. counts the number of occurrences of the target. 3. Handles null arrays by returning 0. 4. Added unit tests for each array type in ArrayUtilsTest to verify correctness(please check or try more cases). 5. Matches the coding style, Javadoc format, and behavior of existing ArrayUtils methods. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
