mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
!263 修复console.input() 输入字符串不全
Merge pull request !263 from gejinxin/v5-dev
This commit is contained in:
commit
8e2c153512
@ -286,7 +286,7 @@ public class Console {
|
||||
* @since 3.3.1
|
||||
*/
|
||||
public static String input() {
|
||||
return scanner().next();
|
||||
return scanner().nextLine();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------- console lineNumber
|
||||
|
Loading…
Reference in New Issue
Block a user