Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 80223 invoked from network); 12 Feb 2008 04:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 04:22:39 -0000 Received: (qmail 74279 invoked by uid 500); 12 Feb 2008 04:22:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 74249 invoked by uid 500); 12 Feb 2008 04:22:33 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 74240 invoked by uid 99); 12 Feb 2008 04:22:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 20:22:33 -0800 X-ASF-Spam-Status: No, hits=-1998.0 required=10.0 tests=ALL_TRUSTED,URIBL_BLACK X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 04:21:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D96D1714074 for ; Mon, 11 Feb 2008 20:22:08 -0800 (PST) Message-ID: <7294182.1202790128888.JavaMail.jira@brutus> Date: Mon, 11 Feb 2008 20:22:08 -0800 (PST) From: "Stepan Mishura (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4774) [classlib][luni] java.util.Scanner.nextLine() has a problem on newline In-Reply-To: <32824141.1189583252124.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stepan Mishura updated HARMONY-4774: ------------------------------------ Comment: was deleted > [classlib][luni] java.util.Scanner.nextLine() has a problem on newline > ---------------------------------------------------------------------- > > Key: HARMONY-4774 > URL: https://issues.apache.org/jira/browse/HARMONY-4774 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Win32 > Reporter: Linbin Yu > Assignee: Oliver Deakin > Attachments: Harmony.PNG, RI.PNG > > > Using "java.util.Scanner.nextLine() " to get a input from user, > you must press Enter key twice to end inputing. > This is a demo: > import java.util.Scanner; > public class test { > String s1, s2; > test() { > Scanner input = new Scanner(System.in); > System.out.print("Enter:"); > s1 = input.nextLine(); > System.out.print("Enter:"); > s2 = input.nextLine(); > System.out.println("String1:" + s1); > System.out.println("String2:" + s2); > } > public static void main(String[] args) { > new test(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.