It's me again. Just when I thought all was well and the dragon had been slayed, I hit another wall.
What I need to do is if the value received in the result set is null then change the value to zero
String RS3result = new String (rs3.getString(1));
if (RS3result == "null")
{
RS3result = "0";
}