Counting Characters in a String with Java

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
G01
Science Advisor
Gold Member
Messages
2,709
Reaction score
19
I need java to read a string and count how many characters are in it. I know there's some class that can do this. What is it?
 
Physics news on Phys.org