Bugs item #1274328, was opened at 2005-08-26 17:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1274328&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interactions
Group: Would be nice if fixed ...
Status: Open
Resolution: None
Priority: 5
Submitted By: Fernando Pereira (fcnpereira)
Assigned to: Nobody/Anonymous (nobody)
Summary: Scanner popup newline behavior is inconsistent
Initial Comment:
Suppose you do the following interactions
> Scanner scan = new Scanner(System.in);
> scan.nextInt()
and type "123" followed by clicking "Done" on the System.in popup.
The following will be output as expected:
123
But then, the following unexpected interaction follows:
> scan.nextLine()
""
This doesn't seem right. The "Done" button should not enter a fake
newline into the scanning buffer.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1274328&group_id=44253
|