hi, i'm getting constructor null pointer exception but i don't know what has gone wrong...
private int capacity; // maximum capacity of the board private double minimum; // minimum distance of the flyer private SortedLinkedList sortedList; private int size = 0; public ScoreBoard() { capacity = 10; minimum = 0.0; sortedList = new SortedLinkedList(); } public ScoreBoard(int capacity) { this.capacity = capacity; minimum = 0.0; sortedList = new SortedLinkedList(capacity); } public ScoreBoard(double minimum) { this.minimum = minimum; capacity = 10; sortedList = new SortedLinkedList(); } public ScoreBoard(int capacity, double minimum) { this.capacity = capacity; this.minimum = minimum; sortedList = new SortedLinkedList(capacity); }