Line 3: Could "regNum" be null? possible but not likely. Even if it is null, checking it 100 times inside the loop isn't going to make a difference.
lee ji eun wrote:
This works 99.99% of the time. On rare occasions the build process hiccups. The way to get back on track is selecting Project > Clean.
Fred Kleinschmidt wrote:
David Ellis Rogers wrote:how do I perform a compile in Eclipse?
Make sure "Project->Build automatically" is checked. Then any time you save an edit it will automatically compile everything.
salvin francis wrote:
Carey Brown wrote:....It's best to create it as a class constant and share that constant among all of your other code.
I haven't used Scanner for a while now, but as far as I remember, it is not thread safe. Is it good to use it as a class constant ?
Kevin O'Sullivan wrote:Thanks guys, I'll read up on Buffer.
Matt Wong wrote:advice:
1) get rid of scanner and use proper input like BufferedReader.nextLine
2) ALWAYS use nextLine and perform casts and parses yourself - so tailing line break always gets cleared