title: passing in string of an array to an int method not working
body: <p>I was doing some problem sets from the book, and I came across a function that was I not able to get solve. Need some help with it. </p>
  
  <p>Basically, I wrote a static methods that is accepting any string of arrays; however, it returns an array of integers. Whenever I pass an string of arrays, I am not getting expected out put. </p>
  
  <p>Someone please advice. </p>
  
  <pre><code>public static int[] myLengths(String[] myString) {
  int x = s.length;
  int[] y = new int[x];
  
  for(int i = 0; i &lt; s.length; i++) {
      y[i] = myString[i].length();
  }   
  
  return myString;
  </code></pre>
  
  <p>}</p>
  
  <p>Currently, I am pasting in </p>
  
  <pre><code>private static final String[] STRING_ARRAY = {"foo", "bar", "baz"};
  </code></pre>