Hi All,
How would I check a vector that has (some) null elements. My vector is returning the information I need. If the element is null, I have to do some specific coding. My current code is returning "Invalid left hand side of assignment." error.
So, how would I check this?
My current code is:
If you need to see a bigger picture of my code, please let me know.
TIA,
Tim
How would I check a vector that has (some) null elements. My vector is returning the information I need. If the element is null, I have to do some specific coding. My current code is returning "Invalid left hand side of assignment." error.
So, how would I check this?
My current code is:
Code:
...
for(int i = 0;accounts.size()>1;i++) {
String acct = (String)accounts.elementAt(i);
System.out.println("One");
System.out.println("acct... " + acct);
Vector tmpRecs = (Vector)wires.get(acct);
System.out.println("Two");
System.out.println(tmpRecs);
System.out.println("Three");
if(tmpRecs.elementAt(i) = null) {<----- error...
System.out.println("Four (null)...");
}
}
...
If you need to see a bigger picture of my code, please let me know.
TIA,
Tim