title: Is there an equivalent of C# indexer in Java?
body: <p>I want to do this in Java. Is it possible?</p>
  
  <pre><code>public string this[int pos]
      {
          get
         {
              return myData[pos];
          }
          set
         {
              myData[pos] = value;
          }
      }
  </code></pre>