Finding the size of a char array in Java

Viewed 106614

I'm making a calculator and I have converted a String to a char array using

char[] b = inputString.toCharArray();

(inputString is my String variable)

Because the String is an input I don't know how large the array will be. Is there an inbuilt method that allows you to find the number of elements in the array? Thanks in advance.

6 Answers
Related