Campbell Ritchie wrote:But System.in always implicitly might have a next line; as soon as you push any key that next line will exist and hasNextLine() will return true. So...is going to behave as an infinite loop.
Yusof Khan wrote:The problem that I'm facing is expounded to java I produce a full java program (Car rental System) with guis my I used Files to store data and it absolutely was operating fine and with no bugs additionally, I created a jar and exe file all of them were working simply fine however once formatting my computer I'm facing issues in adding a user to my program or something involving the files will anyone help, please.
Paul Clapham wrote:
Well, exactly. So suggesting to people in CAPITAL LETTERS that they must set the size of Swing components is less than helpful.