I compiled this and it failed on compilation. Remove the spaces between the two " | | " operators. And break FAST_BREAK needs to be changed to break FAST_EXIT. I then compiled and ran it. No problems! Hope this helps. T
Make sure that the name of the file that this is in is FastBreak.java (capitalization counts). Make sure when you start the program with >java FastBreak that you spell it correctly including capitalization.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Sep 29, 2000
Well I made the two corrections that le pointed out and it compiles and ran correctly. Lots of printout of number is: and char is: etc. Therefore it is not the program. It is either your classpath, or the way that you are typing the class name when you invoke the program. Try adding the c:\jdk1.3.0_02\bin directory to your classpath and move the dot reference to the front of the concatenation. Then MAKE SURE that you are typing >java FastBreak exactly that way. Because for me, it is almost always my fingers causing the problem .
Originally posted by Cindy Glass: > Because for me, it is almost always my fingers causing the problem Technical term for it is "PEBCAK" And I don't think the spaces between--and I'm typing these without a space between them now--"| |" are Gary's fault: it's the ornery UBB that's doing it.
[This message has been edited by JUNILU LACAR (edited June 19, 2001).]