title: Convert static variables from Java to Kotlin
body: <p>I'm trying to convert the following code to Kotlin AND still have one of the classes (Foo) used by Java.  What is the proper way of making this conversion?</p>
  
  <p>Original Java:</p>
  
  <pre><code>public class Foo {
     public static final String C_ID = "ID";
     public static final String C_NAME = "NAME";
     public static final String[] VALUES = {"X", "Y", "Z"};
  
     public static String[] getAll() {
         return new String[] {C_ID, C_NAME};
     }
  }
  
  public class Bar {
      public void doStuff() {
          String var1 = Foo.C_ID;
          String[] array1 = Foo.VALUES;
          String[] array2 = Foo.getAll();
      }
  }
  </code></pre>
  
  <p>Auto conversion fo Foo to Kotlin</p>
  
  <pre><code>object Foo {
      val C_ID = "ID"
      val C_NAME = "NAME"
      val VALUES = arrayOf("X", "Y", "Z")
  
      val all: Array&lt;String&gt;
          get() = arrayOf(C_ID, C_NAME)
  }
  </code></pre>
  
  <p>Problem:</p>
  
  <p>Bar class can no longer access C_ID or VALUES (error: "private access")</p>
  
  <p>if I put "const" in front of C_ID, it works... but I cannot do the same with VALUES ("const" can ONLY be used on primatives or String)</p>
  
  <p>Is there a different way I should be doing this (so both Java code and Kotlin code can access everything in Foo)?</p>