How to know whether a String array is empty?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sunil_Kumar
Posted On:   Wednesday, March 6, 2002 07:06 AM

How to know whether a String array is empty ?

Re: How to know whether a String array is empty?

Posted By:   Christopher_Schultz  
Posted On:   Wednesday, March 6, 2002 10:59 AM

How about this:




String[] array = ...;

if((null == array) || (0 == array.length))
{
// String is empty!
}



-chris
About | Sitemap | Contact