How to find the length of a string?

strlen() function used to find the length of a string

I am having a problem with the following lines where car is a String array which has not been initialized/has no elements.

String car [];
System.out.println(car.length);

What is a possible solution?

PHP Php string
  • 0
  • 0

Give an Answer

Login to answer