i having the string array,, String[] strrr=null; String[] aa ;
aa=strrr[3].split("\!"); if i debug this it shows source not found
but i want to return from the string if the strrr[3] value having
null or 0 ,how to do it,, use above three line of code to check
it,exactly what i want is i dont want any exceptions at the third
line of above , how to do it
shivcena24
0
Newbie Poster
Recommended Answers
Jump to PostAll yu need is
if (strr[3] == null)
... but if strr has not been initialised or is less than 4 elements in size you will need to deal with those possibilities before trying to use strr[3]
All 4 Replies
Majestics
84
Posting Pro
shivcena24
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Majestics
84
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.