You need to override the toString()
method in your adaugareNumere
class.
Example:
@Override
public String toString() {
return "adaugareNumere [c=" + c + ", f=" + f + ", r=" + r + "]";
}
And just give the list in the SOP statement.
System.out.println("Elementele listei: " + lista); // No need for `Arrays.asList()` or `toString()`.