while((result.next()) & (tableExists = false)) {
Is this possibly a typo? Make sure it says: while((result.next()) && (tableExists == false)) { You want to do a logical and, not a bitwise and; also you want to do a comparison, not an assignment. thanks, bryan