|
-
November 4th, 1999, 04:32 AM
#1
how to check if an array is null ?
String cols[][][] = new String[7][2][]; int colcount[] = new int[7];
int i=0;
while (rs.next()) {
cols[0][0][i] = rs.getString(1);
cols[0][1][i] = rs.getString(2);
colcount[0] += rs.getInt(2);
i++;
} // end while
how do i check if the value in
cols[0][1][4] is null ?
maybe , but not likely :-
if (cols[0][1][4] is null) ?
thanks
http://members.xoom.com/lookads
-
November 4th, 1999, 06:49 AM
#2
Re: how to check if an array is null ?
Here s[] is a single dimesion array : Similarly u can use null to compare wheather an array is null
for(int i=0;i<15;i++){
if(s[i]==null)
System.out.println ("Null");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|