Welcome to the Ranch, Michelle. Please give more details of the errors you are getting; I am pretty sure (as Joanne has hinted) that your code as shown won't compile or run so you can get an Exception. If quoting code, please use ctrl-C ctrl-V and don't copy it by hand, in case you introduce yet more errors.