if (nodes[i] == nodes[start])
if (nodes[i].equals(nodes[start]))
        int getOccurrences(int start) {            int count = 1;            for (int i = start + 1; i < position; i++) {                if (nodes[i] == nodes[start])                    count++;                else                    break;            }            return count;        }