S
S
striver2020-01-27 14:37:53
Java
striver, 2020-01-27 14:37:53

How to add results to a class?

There are some numbers at the input, then they are processed in a separate class. Further, the results of calculations need to be stored in a separate class, because this data can be used for different output options, for a start, for example, to the console.
How to implement warehousing of all data of the calculation process?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kvaks, 2020-01-27
@striver

Create a class with a constructor and call it when adding your numbers.

E
Elmo Sputterspark, 2020-01-27
@Sputterspark

Easily.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question