Zeger Hendrikse / IT Consultant

Zeger Hendrikse

IT Consultant

Self-employed IT consultant specialized in Java/JEE development, agile coaching, and continuous delivery, with most projects in finance and insurance.

ProgrammingHow to Count Char Occurrences in Java String One-Liner

Idiomatic Java ways to count specific characters like dots in strings without loops: streams, replace tricks, regex. Efficient one-liners for 'a.b.c.d' yielding 3, with performance tips and best practices for Java strings.

4 answers 1 view