“Code too large” compilation error in Java

后端 未结 13 1556
半阙折子戏
半阙折子戏 2020-11-22 14:33

Is there any maximum size for code in Java? I wrote a function with more than 10,000 lines. Actually, each line assigns a value to an array variable.

arts_b         


        
13条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 15:06

    This seems a bit like madness. Can you not initialize the array by reading the values from a text file, or some other data source?

提交回复
热议问题