public int getValue(int place) {
        ListElement current = head;
        if (place <= count) {
            for (int i = 1; i < place; i++) {
                current = current.next;
            }
            return current.value;
        } else {
            return error;
        }
    }