cari

Rumah  >  Soal Jawab  >  teks badan

Tatasusunan saya di luar batas, bagaimana untuk menyelesaikannya?

报错的提示如下

Pengecualian dalam utas "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Indeks -1 di luar had untuk panjang 20 di org.liky.game.frame.FiveChessFrame.frame.FiveChessFrame ) di org.liky.game.frame.FiveChessFrame.checkwin(FiveChessFrame.java:183) di org.liky.game.frame.FiveChessFrame.mousePressed(FiveChessFrame.java:141) di java.desktop/java.awt.Component. processMouseEvent(Component.java:6611) di java.desktop/java.awt.Component.processEvent(Component.java:6379) di java.desktop/java.awt.Container.processEvent(Container.java:2263) di java.desktop /java.awt.Window.processEvent(Window.java:2046) di java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990) di java.desktop/java.awt.Container.dispatchEventImpl(Container.java :2321) di java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769) di java.desktop/java.awt.Component.dispatchEvent(Component.java:4822) di java.desktop/java.awt. EventQueue.dispatchEventImpl(EventQueue.java:772) di java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) di java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) di java.base/java.security.AccessController.doPrivileged(AccessController.java:391) di java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) di java.base/java.ProtectionDosecurity $JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) di java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) di java.desktop/java.awt.EventQueue$5.run(EventQueue.java:74 ) di java.base/java.security.AccessController.doPrivileged(AccessController.java:391) di java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) di java.desktop. EventQueue.dispatchEvent(EventQueue.java:742) di java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) di java.desktop/java.awt.EventDispatchThread.pumpjavahreadDispatch2:Thread.pumpEvents. .desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) di java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) di java. hread .java:101) di java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Jesse·BryantJesse·Bryant1060 hari yang lalu1597

membalas semua(1)saya akan balas

  • autoload

    autoload2022-01-03 11:01:54

    Tatasusunan berada di luar batasan. Semak syarat anda untuk melihat sama ada anda mengakses data dalam tatasusunan

    balas
    0
  • Batalbalas