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

后端 未结 8 973
执念已碎
执念已碎 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 16:12

    You method is too long.

    Create different methods to split it and make it much more readable and maintanable.

提交回复
热议问题