ArrayIndexOutOfBoundsException in com.ibm.icu.text.BreakDictionary.main in SWT Application

前端 未结 2 524
耶瑟儿~
耶瑟儿~ 2021-01-24 03:31

I am getting

Exception in thread \"main\" java.lang.ArrayIndexOutOfBoundsException: 0
at com.ibm.icu.text.BreakDictionary.main(BreakDictionary.java:40)
<         


        
相关标签:
2条回答
  • 2021-01-24 03:55

    You are running the main method of BreakDictionary. In other words: you are running a completely different program and not the code you posted.

    0 讨论(0)
  • 2021-01-24 04:06

    In order to be sure that you are not running a different method from the dictionary class, you should right click on your class and run it as a Java application.

    0 讨论(0)
提交回复
热议问题