Java扫描程序跳过对nextLine的第二次调用

时间:2018-10-22 00:38:16

标签: java java.util.scanner

由于某种原因,它只是让我输入名字而跳过让我输入名字。它还会同时打印“输入名字”和“输入名字”。

Generating reports...
Exception in thread "main" java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won't be generated
    at io.gatling.charts.report.ReportsGenerator.generateFor(ReportsGenerator.scala:48)
    at io.gatling.app.RunResultProcessor.generateReports(RunResultProcessor.scala:76)
    at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:55)
    at io.gatling.app.Gatling$.start(Gatling.scala:64)
    at io.gatling.app.Gatling$.fromMap(Gatling.scala:38)
    at Engine$.delayedEndpoint$Engine$1(Engine.scala:12)
    at Engine$delayedInit$body.apply(Engine.scala:4)
    at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    at scala.App$$anonfun$main$1.apply(App.scala:76)
    at scala.App$$anonfun$main$1.apply(App.scala:76)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
    at scala.App$class.main(App.scala:76)
    at Engine$.main(Engine.scala:4)
    at Engine.main(Engine.scala)

0 个答案:

没有答案