title: How to create Array of Pointers in Java ? Below is code in c as an example , and for my project JAVA is compulsory , so can you help me out?
body: <p>Author : Daman Jha
      //Example in c . How to write this code in JAVA ?//</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  const int MAX = 3;
  
  int main ()
  {
   int  var[] = {10, 100, 200};
   int i, *ptr[MAX];  //here is array of pointers in c ,  How can I use
                     // this facility in JAVA?
  
   for ( i = 0; i &lt; MAX; i++)
  {
    ptr[i] = &amp;var[i]; /* assign the address of integer. */
  }
  for ( i = 0; i &lt; MAX; i++)
  {
        printf("Value of var[%d] = %d\n", i, *ptr[i] );
  }
  return 0;
  }
  </code></pre>
  
  <p>//////Thank you</p>