Java Add To Array If Not Null Mysql Compiler