How to fix “The code of method .. is exceeding the 65535 bytes limit”?

后端 未结 8 974
执念已碎
执念已碎 2020-12-14 15:36

I have the following code:

public static void main(String[] args) {
    try {
        String[] studentnames = {
            /* this is an array of 9000 strin         


        
8条回答
  •  旧时难觅i
    2020-12-14 16:03

    In java a methods can't have more than 65535 bytes.

    So to fix this problem, break up your main(String[] args) method in to multiple sub methods.

提交回复
热议问题