title: hashmap.get() returning wrong values even though they are all correct in the map
body: <p>Goal is to take in a String[] length 36 and it will be a 6x6 array from 1x1 to 6x6 then print out the coordinates of a word found in the 2d array. Easy enough. I have placed each array item into the map with the corresponding coordinates (as a String value because I need to return a String). If I print all the values they print correctly 11 through 66, but if the input is "NO70JE3A4Z28X1GBQKFYLPDVWCSHUTM65R9I" for example I get "1271" as an output when I should be getting "1166". Any ideas? Here's my code.</p>
  
  <pre><code>     int rcounter = 1;
      int ccounter = 1;
      HashMap&lt;String, String&gt; soup = new HashMap&lt;String, String&gt;();
      for (int i = 0; i &lt; a.length; i++) {
          if (ccounter == 7) {
              ccounter = 1;
              rcounter++;}
          String row = Integer.toString(rcounter);
          String column = Integer.toString(ccounter);
          soup.put(a[i], row + column);
          ccounter++;
          if (i == 36) {
              break; }
              System.out.println(row+column); }
  
  
      return soup.get("N") + soup.get("I");
  </code></pre>