inserisco oggetti value singoli, infatti il metodo che mi ritorna un valore da solo:
va a buon fine :master:codice:public Value getValueID(int ID) throws ElementNotFoundException { Value v = null; try { v = (Value) value.get(ID); } catch(ArrayIndexOutOfBoundsException e) { throw new ElementNotFoundException("Il valore con ID \"" + ID + "\" non è stato trovato"); } return v; } }
grazie per avermi detto di quel problema che da anche con le stringhe, magari potrei fare un sistema meno forbito ma che almeno rispetta l'interfaccia
![]()