Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Navin Gada   on May 06 In Java Category.

  
Question Answered By: Katrina Edwards   on May 06

Your Code in the constructor should be re-written as
public class  Elevator
{
private LinkedList upList;
public Elevator()
{
//LinkedList upList = new LinkedList(); // This existed before the mod
upList = new LinkedList(); // This is the modified line uplist has been
declared initialize it
}

...............

}

Share: