我试图逐行读取stdin中的int并将其存储到数组中。当我得到一个空行时,我会知道我已经完成了阅读输入。但是,当我运行此代码时,我似乎没有退出循环,因为程序只是挂起。我在这里做错了什么?
field[i][j]
程序将挂起样本输入:
java.lang.NoClassDefFoundError: com.app.xmpp.MyXMPP$MMessageListener
at
com.app.xmpp.MyXMPP.init(MyXMPP.java:88)
at
com.app.xmpp.MyXMPP.<init>(MyXMPP.java:57)
at
com.app.xmpp.MyXMPP.getInstance(MyXMPP.java:63)
at
com.app.xmpp.XmppService.onCreate(XmppService.java:54)
at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2791)
at
android.app.ActivityThread.access$1800(ActivityThread.java:155)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:135)
at
android.app.ActivityThread.main(ActivityThread.java:5343)
at
java.lang.reflect.Method.invoke(Native Method)
at
java.lang.reflect.Method.invoke(Method.java:372) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)