title: "Code Too Large" Error is coming when so many values initialized to array in Resource File
body: <p>I am trying to get values from a resource class file where I need to initialize huge amount of values to an array of <code>static final Object[][]</code>, which resulting in "Code Too Large" error when compiled.</p>
  
  <p>Searched for this in the forum, everywhere it is said like split your code. But, I would like to avoid having multiple resource files. Can we do the same splitting within the same resource file by using different classes/variables/methods and all. </p>
  
  <p>and here is the code structure sample which I used</p>
  
  <pre><code>package resources;
  
  import java.util.ListResourceBundle;
  
  public class Labels extends ListResourceBundle
  {
    static final Object[][] contents = { { "RD.Empno.label", "Employee No" }, 
                                         { "RD.Ename.label", "Employee Name" }, 
                                         { "RD.Sal.label", "Salary" },
                                         { "RD.Deptno.label", "Department No" }
                                       };
  
    public Object[][] getContents()
    {
      return contents;
    }
  }
  </code></pre>
  
  <p>Kindly suggest the way to proceed with.</p>