How to check if a Vector's size exist?

前端 未结 0 1141
臣服心动
臣服心动 2020-12-05 19:44

I would like to check if a Vector\'s size exists and equals 0.

I thought of using the following:

if (vector1 != null && vector1.size() = 0) {
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题