setValue implemented - java