title: Integer variable for Set cannot be resolved as type
body: <p>I am creating an application to allow a user to assign a lane number for 8 racer's. I have set the runners names into an ArrayList and the lanes into a Set. At the moment I am calling the list and set into a Class Array. I will combine the ArrayList and Set as a Singleton Map.  I cannot get the Set to accept the Integer variable raceLane as a Type.  Any help with the Set problem and suggestions on how to turn the ArrayList and Set into a Singleton Map would be appreciated thank you.  Here is what I have so far.</p>
  
  <pre><code>package Race;
  
  
  import java.util.ArrayList;
  import java.util.HashSet;
  import java.util.Scanner;
  import java.util.Set;
  
  
  public class LaneDesignation {
  
  
  
  //create ArrayList and Set
  private ArrayList runnersArray= new ArrayList();
  private Set&lt;raceLane&gt; raceLanesSet = new HashSet&lt;raceLane&gt;();
  //Declare Variables
  private Integer raceLane;  
  String runnerName;
  int numbRunner, i = 0;
  //Call Scanner Instance   
  Scanner input = new Scanner(System.in);
  
  public LaneDesignation()
  {
      this.raceLane = raceLane;
  }
  
  public void setNumb(int numb)
  {
      numbRunner= numb;
  }   
  
  public void setName()
  {
      System.out.print("Please enter the name of runner " + numbRunner + ": ");
      runnerName = input.next();
      i = 0;
      runnersArray.add(i, runnerName); 
      i++;     
  }
  
  public String returnName()
  {
      return runnerName;
  }
  
  
  public void getLane()
  {
      raceLanesSet.add(0, raceLane);
  
      do
      {
  
          System.out.print("Please enter the lane the runner is assigned to ");
          while (input.hasNextInt())
          {
              //Test that only numeric characters were entered
              System.out.println("Invalid entry.  Please enter a numeric value");
              System.out.print("Please enter a lane designation from 1-8: ");
              input.next();
          }
  
          raceLane = input.nextInt();
  
      }while (raceLane &lt;=0);
      raceLanesSet.add(i, raceLane);
  
      i++; 
  }
  
  public Integer returnLane()
  {
  return raceLane;
  }
  
  public void displayDesignation()
  {           
      System.out.println("Runner   |   Desinated Lane");
      while (i &lt; runnersArray.size())
      {
          System.out.println(runnersArray.(i) + " will race in lane" +  raceLanesSet.get(i));
          i++;
      }
  }
  
  public void setRaceLane(Integer raceLane)
  {
      this.raceLane = raceLane;
  } 
  
  }
  </code></pre>
  
  <p>The ArrayList and Set are called and combined as a ClassArray
      //Inspired by Kacey</p>
  
  <pre><code>package Race;
  
  import java.util.Scanner;
  public class Runners {
  
  
     //creation array of classes of class LaneDesignation
     LaneDesignation[] Assign = new LaneDesignation[8];//8 Runners and 8 lanes
     Scanner input = new Scanner(System.in);
  
  
      public Runners()
      {
        //initialization of the class
        for (int i=0; i&lt;Assign.length; i++){
           Assign[i] = new LaneDesignation();
      }
  }
  
  public void raceArray()
  {
      for(int i=0;i&lt;Assign.length; i++)
      {       
          Assign[i].setNumb((i+1));        
  
          Assign[i].setName(); 
  
          Assign[i].getLane();
  
       }
  }
  //Method to display the contents in the list
  //I am receiving  runnersArray cannot be resolved to variable error
  public void outputRunners() 
  {
      for(LaneDesignation currentRunner : runnersArray)
      {
          System.out.println(currentRunner.getRunner());
      }
  }
  
  }
  </code></pre>