title: Printing the last int value stored in an array
body: <p>I have initialized an array int numArray to store 10 values . Now I want my program to print the last value stored in this array. I have used this code but really didn't work.</p>
  
  <pre><code>System.out.printIn(numArray[numArray.length-1])
  </code></pre>
  
  <p>or I shall go with</p>
  
  <pre><code>int result = numArray.size;
  System.out.printIn(result);
  </code></pre>
  
  <p>Can anyone help me ?</p>