Post the exact error, the whole thing, copied and pasted.

"Cannot find symbol" means the compiler encountered a variable name (the 'symbol') that was not declared within the scope it was found. ...