Babylon Lion wrote:
it doesn't output anything?! Any clue?
If there are no run-time exceptions, then the only way to get some output is by calling a method that outputs something. Can you point us to some of those, as I don't see any. BTW: your hasNextLine() and nextLine() stuff is quite a mess IMO. May I suggest you reconsider your current code, clean it up, and then do one of these two things: 1. add logging statements that show where you are; a few System.out.println("Now going to ..."); could do wonders. 2. learn to use your debugger, with breakpoints and single-stepping, so you can slowly execute your code and look at the statements being executed one at a time. Also, if you're new to programming, maybe it would be wise: 1. to study an introductory book of your choice, from the start; 2. to start out with simpler stuff, probably from said book. Good luck.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.