A single bar is perfectly fine for an "or".

Usually you get that message if you have copied/paste code from a word processor which uses character codes that the java compiler does not know about.