title: "Code too large" compilation error in Java
body: <p>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. </p>
  
  <pre><code>arts_bag[10792]="newyorkartworld";
  arts_bag[10793]="leningradschool";
  arts_bag[10794]="mailart";
  arts_bag[10795]="artspan";
  arts_bag[10796]="watercolor";
  arts_bag[10797]="sculptures";
  arts_bag[10798]="stonesculpture"; 
  </code></pre>
  
  <p>And while compiling, I get this error: code too large</p>
  
  <p>How do I overcome this? </p>