title: get(int) in List cannot be applied to java.lang.String
body: <p>I created a Map like so:</p>
  
  <pre><code>private Vector vaildateTestScore(String persTestCode, String score, List&lt;TSpecialTest&gt; specialTestList, Vector errorVtr) {
  
          Map&lt;String, TSpecialTest&gt; specialTestmap = new HashMap&lt;String, TSpecialTest&gt;();
  
          for (TSpecialTest specialTest : specialTestList) {
              specialTestmap.put(persTestCode,specialTest);
          }
  
          if (specialTestList.get(persTestCode).getPersTestScrQyMin() &lt; score){
  
              errorVtr.add(specialTestList.get(persTestCode)+" max range is "+" "+specialTestList.get(persTestCode).getPersTestScrQyMax());
  
              System.out.println("There was an error with &gt; "+specialTestList.get(persTestCode).getPerTestTypeCd());
          }
          else if(specialTestList.get(persTestCode).getPersTestScrQyMax() &gt; score){
  
              errorVtr.add(specialTestList.get(persTestCode).getPerTestTypeCd()+" min range is "+" "+specialTestList.get(persTestCode).getPersTestScrQyMin());
  
              System.out.println("There was an error with &lt; "+specialTestList.get(persTestCode).getPerTestTypeCd());
          }
  
          return errorVtr;
      }
  </code></pre>
  
  <p>However where ever you see <code>persTestCode</code> my IDE shows a runtime error saying: <code>get(int) in List cannot be applied to java.lang.String</code></p>
  
  <p>This class is set up by calling the following at the beginning of the class like so:</p>
  
  <pre><code>   SpecialTestImpl specialTest = ComponentBuilder.getInstance().getApplicationContext().getBean(SpecialTestImpl.class);
  
       List&lt;TSpecialTest&gt; specialTestList = specialTest.specialTestList();
  </code></pre>
  
  <p>Then the method is called like so:</p>
  
  <pre><code>String persTestCode = elem.replace("scr.", "");
                                  String score = request.getParameter(elem);
      Vector errorVtr = new Vector();
  
      //validates inputted test scores
      vaildateTestScore(persTestCode, score, specialTestList,errorVtr);
  </code></pre>
  
  <p>--------------------SOLVED--------------------------------</p>
  
  <p>This was a comlete oversite on my side. The tab button and the name similarity got the best of me. This is what I am trying to do.</p>
  
  <pre><code> private Vector vaildateTestScore(String persTestCode, String score, List&lt;TSpecialTest&gt; specialTestList, Vector errorVtr) {
  
          Map&lt;String, TSpecialTest&gt; specialTestmap = new HashMap&lt;String, TSpecialTest&gt;();
  
          for (TSpecialTest specialTest : specialTestList) {
              specialTestmap.put(persTestCode,specialTest);
          }
  
          if (specialTestmap.get(persTestCode).getPersTestScrQyMax() &gt; Integer.parseInt(score)){
  
              errorVtr.add(specialTestmap.get(persTestCode)+" max range is "+" "+specialTestmap.get(persTestCode).getPersTestScrQyMax());
  
              System.out.println("There was an error with &gt; "+specialTestmap.get(persTestCode).getPerTestTypeCd());
          }
          else if(specialTestmap.get(persTestCode).getPersTestScrQyMax() &gt; Integer.parseInt(score)){
  
              errorVtr.add(specialTestmap.get(persTestCode).getPerTestTypeCd()+" min range is "+" "+specialTestmap.get(persTestCode).getPersTestScrQyMin());
  
              System.out.println("There was an error with &lt; "+specialTestmap.get(persTestCode).getPerTestTypeCd());
          }
  
          return errorVtr;
      }
  </code></pre>