First of all, UseCodeTags. It will make it easier for people to read.
As for your error, it is not in the code you have provided. I have copied this, declared videoCrytoLineA and videoCrytoLineB as private fields (which I assume they are) and compiled. Worked like a charm. Can you post the entire error message? Something like what I got when I removed the import for StringTokenizer:
On a side note, you have made one huge logical error in the following two lines: