Object sentenced empty

obj.withContent () determines whether the object is not empty and has a value

obj = null null object is determined, if the initialization example, the object is value, the empty judgment invalid.

obj.count> 0 determines the size of the object is greater than 0, if the object is empty, an error

 

Guess you like

Origin www.cnblogs.com/codecheng/p/11468661.html