Create a public non-final generic class called Some, which stores a single instance of the parameterized type. Your constructor should take a single instance of the parameterized type and save it. You should also provide getValue and setValue methods that allow the saved value to be retrieved or modified. As usual, your class should not expose any of its state publicly. Note that you may not be able to complete this home

Answer :

kendrich

Answer:

See explaination

Explanation:

public class Some<T> {

private T value;

public Some(T value) {

this.value = value;

}

public T getValue() {

return value;

}

public void setValue(T value) {

this.value = value;

}

}

Other Questions