If String Not In Array Javascript Methods Types In Java