input.nextLine()的注意事项

若在input.nextInt()和input.nextDouble()后使用input.nextLine(),要先加一个input.nextLine()进行换行

原文地址:https://www.cnblogs.com/tenghaoxiang/p/9905558.html