How to find length of a string array?

前端 未结 8 1198
温柔的废话
温柔的废话 2020-12-13 19:10

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

String c         


        
8条回答
  •  生来不讨喜
    2020-12-13 19:48

    String car [];
    

    is a reference to an array of String-s. You can't see a length because there is no array there!

提交回复
热议问题